termux_step_setup_toolchain: -fPIC should be in CFLAGS

This commit is contained in:
Tee KOBAYASHI 2021-12-05 08:09:28 +09:00 committed by Leonid Pliushch
parent 697977c0b1
commit 653a110ddb

View File

@ -49,7 +49,7 @@ termux_step_setup_toolchain() {
CFLAGS+=" -march=i686 -msse3 -mstackrealign -mfpmath=sse"
# i686 seem to explicitly require -fPIC, see
# https://github.com/termux/termux-packages/issues/7215#issuecomment-906154438
CPPFLAGS+=" -fPIC"
CFLAGS+=" -fPIC"
export GOARCH=386
export GO386=sse2
elif [ "$TERMUX_ARCH" = "aarch64" ]; then