xbps-src: added "build_pie" var to build PIE binaries.
This commit is contained in:
parent
ba8a93a9c6
commit
9870868948
3 changed files with 6 additions and 1 deletions
1
common/environment/build/build-pie.sh
Symbolic link
1
common/environment/build/build-pie.sh
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../configure/build-pie.sh
|
4
common/environment/configure/build-pie.sh
Normal file
4
common/environment/configure/build-pie.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
if [ -n "$build_pie" ]; then
|
||||||
|
CFLAGS+=" -fPIE"
|
||||||
|
LDFLAGS+=" -pie"
|
||||||
|
fi
|
|
@ -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 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 patch_args disable_parallel_build keep_libtool_archives
|
||||||
unset -v reverts subpackages makedepends hostmakedepends depends
|
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 CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LD_LIBRARY_PATH
|
||||||
unset -v CC CXX CPP GCC LD AR AS RANLIB NM OBJDUMP OBJCOPY STRIP READELF
|
unset -v CC CXX CPP GCC LD AR AS RANLIB NM OBJDUMP OBJCOPY STRIP READELF
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue