Skip to content

Commit

Permalink
force fPIC on i386
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored Dec 13, 2024
1 parent e404b70 commit 686376a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build_linux_zig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 686376a

Please sign in to comment.