New comment by sgn on void-packages repository https://github.com/void-linux/void-packages/pull/46172#issuecomment-1758806108 Comment: It's better to fix the cross-cc wrappers instead of hacking into the template ```diff commit 288dedd830a (HEAD -> master) Author: Đoàn Trần Công Danh Date: Thu Oct 12 09:09:38 2023 +0700 wrappers/cross-cc: drop -isystem /usr/include, too diff --git a/common/wrappers/cross-cc b/common/wrappers/cross-cc index 0e08bc91d0f..9f9d581a8b7 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}") ```