Accepting request 876802 from home:elvigia:branches:devel:libraries:c_c++

- Harden build, enable full RELRO
- Never allow undefined symbols anywhere.

OBS-URL: https://build.opensuse.org/request/show/876802
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/curl?expand=0&rev=292
This commit is contained in:
Pedro Monreal Gonzalez 2021-03-05 07:59:37 +00:00 committed by Git OBS Bridge
parent 5e99168233
commit 98afeb4ad0
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 4 17:46:40 UTC 2021 - Cristian Rodríguez <crrodriguez@opensuse.org>
- Harden build, enable full RELRO
- Never allow undefined symbols anywhere.
-------------------------------------------------------------------
Thu Feb 4 11:20:22 UTC 2021 - Pedro Monreal <pmonreal@suse.com>

View File

@ -102,7 +102,7 @@ CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS=$(echo "%{optflags}" | sed -e 's/-D_FORTIFY_SOURCE=2//')
export CPPFLAGS
export CFLAGS="$CFLAGS -fPIE"
export LDFLAGS="$LDFLAGS -pie"
export LDFLAGS="$LDFLAGS -Wl,-z,defs,-z,now,-z,relro -pie"
autoreconf -fiv
# local hack to make curl-config --libs stop printing libraries it depends on
# (currently, libtool sets link_all_deplibs=(yes|unknown) everywhere,