termux_step_setup_toolchain: -fPIC
should be in CFLAGS
This commit is contained in:
parent
697977c0b1
commit
653a110ddb
@ -49,7 +49,7 @@ termux_step_setup_toolchain() {
|
|||||||
CFLAGS+=" -march=i686 -msse3 -mstackrealign -mfpmath=sse"
|
CFLAGS+=" -march=i686 -msse3 -mstackrealign -mfpmath=sse"
|
||||||
# i686 seem to explicitly require -fPIC, see
|
# i686 seem to explicitly require -fPIC, see
|
||||||
# https://github.com/termux/termux-packages/issues/7215#issuecomment-906154438
|
# https://github.com/termux/termux-packages/issues/7215#issuecomment-906154438
|
||||||
CPPFLAGS+=" -fPIC"
|
CFLAGS+=" -fPIC"
|
||||||
export GOARCH=386
|
export GOARCH=386
|
||||||
export GO386=sse2
|
export GO386=sse2
|
||||||
elif [ "$TERMUX_ARCH" = "aarch64" ]; then
|
elif [ "$TERMUX_ARCH" = "aarch64" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user