diff --git a/scripts/build_linux_zig.sh b/scripts/build_linux_zig.sh index 451b239a..85e90f07 100755 --- a/scripts/build_linux_zig.sh +++ b/scripts/build_linux_zig.sh @@ -84,7 +84,7 @@ elif [[ "${ARCH}" == "i386" ]]; then export CXX="i686-linux-gnu-g++" export CHOST=i686-linux-gnu export ZIG_FLAGS="-target x86-linux-gnu.2.17" - export CFLAGS="-m32 -Wl,--undefined-version ${CFLAGS}" + export CFLAGS="-m32 -fPIC -Wl,--undefined-version ${CFLAGS}" export CPPFLAGS="-m32 ${CPPFLAGS}" export CXXFLAGS="-m32 ${CXXFLAGS}" export LDFLAGS="-m32 ${LDFLAGS}"