Add PIC flags to global C/XXFLAGS
This commit is contained in:
parent
157c185e4f
commit
c44ba35915
1 changed files with 2 additions and 2 deletions
|
@ -27,6 +27,6 @@ ENV FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-
|
||||||
FFBUILD_PREFIX=/opt/ffbuild \
|
FFBUILD_PREFIX=/opt/ffbuild \
|
||||||
FFBUILD_CMAKE_TOOLCHAIN=/toolchain.cmake \
|
FFBUILD_CMAKE_TOOLCHAIN=/toolchain.cmake \
|
||||||
PKG_CONFIG_LIBDIR=/opt/ffbuild/lib/pkgconfig \
|
PKG_CONFIG_LIBDIR=/opt/ffbuild/lib/pkgconfig \
|
||||||
CFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong -pthread" \
|
CFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -fPIC -DPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong -pthread" \
|
||||||
CXXFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong -pthread" \
|
CXXFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -fPIC -DPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong -pthread" \
|
||||||
LDFLAGS="-static-libgcc -static-libstdc++ -L/opt/ffbuild/lib -O2 -pipe -fstack-protector-strong -pthread -lm"
|
LDFLAGS="-static-libgcc -static-libstdc++ -L/opt/ffbuild/lib -O2 -pipe -fstack-protector-strong -pthread -lm"
|
||||||
|
|
Loading…
Reference in a new issue