Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
set EXTRACFLAGS instead of CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Jan 20, 2021
1 parent 02c2684 commit 24b4fcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/pkgs/python3/spkg-build.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ if [ "$UNAME" = Darwin ]; then
if [ $MACOSX_VERSION -ge 16 ]; then
echo "OS X 10.$[$MACOSX_VERSION-4] Building with clang."
CC=clang
export CFLAGS="$CFLAGS_NON_NATIVE"

# We set EXTRA_CFLAGS as above, but remove `-march=native` in
# case it is present, as clang cannot handle it.
export EXTRA_CFLAGS="`testcflags.sh -Wno-unused` $CFLAGS_NON_NATIVE"
fi
elif [ "$UNAME" = SunOS ]; then
# Enable some C99 features on Solaris. This in particular enables
Expand Down

0 comments on commit 24b4fcc

Please sign in to comment.