termux_setup_toolchain_gnu.sh: restore flag `-fPIC`

This commit is contained in:
Ivan Max 2023-10-02 12:12:12 +03:00 committed by GitHub
parent 1baf205b2a
commit 3d027ee77c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ termux_setup_toolchain_gnu() {
CFLAGS+=" -march=armv7-a -mfloat-abi=hard -mfpu=neon"
PATH_DYNAMIC_LINKER+="ld-linux-armhf.so.3"
elif [ "$TERMUX_ARCH" = "x86_64" ]; then
CFLAGS+=" -march=x86-64"
CFLAGS+=" -march=x86-64 -fPIC"
PATH_DYNAMIC_LINKER+="ld-linux-x86-64.so.2"
elif [ "$TERMUX_ARCH" = "i686" ]; then
CFLAGS+=" -march=i686"