From 898223e6e1e2388df1f8c7ec9b144ee0d3ee9328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 12 Oct 2023 19:42:10 +0700 Subject: [PATCH] wrappers/cross-cc: drop -isystem /usr/include, too --- common/wrappers/cross-cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/wrappers/cross-cc b/common/wrappers/cross-cc index 0e08bc91d0fc2..9f9d581a8b7af 100644 --- a/common/wrappers/cross-cc +++ b/common/wrappers/cross-cc @@ -23,13 +23,13 @@ while [ $i -lt ${#ARGS[@]} ]; do MYARGS+=("-L${arg}") fi unset libpath - elif [ "$arg" = "-I" ]; then + elif [ "$arg" = "-I" -o "$arg" = "-isystem" ]; then incpath=1 elif [ "$arg" = "-L" ]; then libpath=1 - elif [ "$arg" = "-I/usr/include" -o "$arg" = "-L/usr/lib" \ + elif [ "$arg" = "-I/usr/include" -o "$arg" = "-isystem/usr/include" \ -o "$arg" = "-L/usr/lib32" -o "$arg" = "-L/usr/lib64" \ - -o "$arg" = "-L/lib" ]; then + -o "$arg" = "-L/usr/lib" -o "$arg" = "-L/lib" ]; then echo "[cc-wrapper] ignoring $arg" else MYARGS+=("${arg}")