xbps-src: added "build_pie" var to build PIE binaries.

This commit is contained in:
Juan RP 2015-03-04 17:00:19 +01:00
parent ba8a93a9c6
commit 9870868948
3 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1 @@
../configure/build-pie.sh

View File

@ -0,0 +1,4 @@
if [ -n "$build_pie" ]; then
CFLAGS+=" -fPIE"
LDFLAGS+=" -pie"
fi

View File

@ -8,7 +8,7 @@ unset -v configure_script configure_args wrksrc build_wrksrc create_wrksrc
unset -v make_cmd make_build_args make_install_args make_build_target make_install_target python_versions
unset -v patch_args disable_parallel_build keep_libtool_archives
unset -v reverts subpackages makedepends hostmakedepends depends
unset -v build_options build_options_default bootstrap repository reverts
unset -v build_pie build_options build_options_default bootstrap repository reverts
unset -v CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LD_LIBRARY_PATH
unset -v CC CXX CPP GCC LD AR AS RANLIB NM OBJDUMP OBJCOPY STRIP READELF