hardened build: remove LDFLAGS, enable macro
This commit is contained in:
parent
8d476e4dbd
commit
9a8ced65aa
@ -1,7 +1,4 @@
|
|||||||
# TODO: add make test after build
|
%global _hardened_build 1
|
||||||
|
|
||||||
# TODO: hardening using RPM macros - instead of -Wl,-z,relro in LDFLAGS
|
|
||||||
#%global _hardened_build 1
|
|
||||||
|
|
||||||
%define evolution_connector_prefix %{_libdir}/evolution-openldap
|
%define evolution_connector_prefix %{_libdir}/evolution-openldap
|
||||||
%define evolution_connector_includedir %{evolution_connector_prefix}/include
|
%define evolution_connector_includedir %{evolution_connector_prefix}/include
|
||||||
@ -183,15 +180,10 @@ popd
|
|||||||
libtool='%{_bindir}/libtool'
|
libtool='%{_bindir}/libtool'
|
||||||
export tagname=CC
|
export tagname=CC
|
||||||
|
|
||||||
%ifarch ia64
|
|
||||||
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -O0"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
export CPPFLAGS="-I%_includedir/nss3 -I%_includedir/nspr4"
|
export CPPFLAGS="-I%_includedir/nss3 -I%_includedir/nspr4"
|
||||||
export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS -fPIC -D_REENTRANT -DLDAP_CONNECTIONLESS -D_GNU_SOURCE -DHAVE_TLS -DHAVE_MOZNSS -DSLAPD_LMHASH"
|
export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS -fPIC -D_REENTRANT -DLDAP_CONNECTIONLESS -D_GNU_SOURCE -DHAVE_TLS -DHAVE_MOZNSS -DSLAPD_LMHASH"
|
||||||
export NSS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
|
export NSS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
|
||||||
export LIBS=""
|
export LIBS=""
|
||||||
export LDFLAGS="$LDFLAGS -Wl,-z,relro"
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user