xbps-src: make 'build_pie' the default; use 'nopie' to disable it.
Discussed with @chneukirchen.
This commit is contained in:
parent
9575860319
commit
3fdad91bf9
265 changed files with 2 additions and 266 deletions
|
@ -1,6 +1,6 @@
|
|||
_GCCSPECSDIR=${XBPS_COMMONDIR}/environment/configure/gccspecs
|
||||
|
||||
if [ -n "$build_pie" ]; then
|
||||
if [ -z "$nopie" ]; then
|
||||
CFLAGS+=" -specs=$_GCCSPECSDIR/hardened-cc1"
|
||||
CXXFLAGS+=" -specs=$_GCCSPECSDIR/hardened-cc1"
|
||||
# We pass -z relro -z now here too, because libtool drops -specs...
|
||||
|
|
|
@ -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 stackage
|
||||
unset -v patch_args disable_parallel_build keep_libtool_archives
|
||||
unset -v reverts subpackages makedepends hostmakedepends depends restricted
|
||||
unset -v build_pie build_options build_options_default bootstrap repository reverts
|
||||
unset -v nopie 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue