summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2017-03-15 22:26:06 +0000
committerDavid Howells <dhowells@redhat.com>2017-03-15 22:26:06 +0000
commit9ac78a0ac90fe944f3c76fbb8a84b88796851d32 (patch)
treed5c38a334ca0e2a164cf6793380cb93c5eeae5d2
parent308119c61e94bcc4c710404b9f679e3bb8316713 (diff)
downloadkeyutils-9ac78a0ac90fe944f3c76fbb8a84b88796851d32.tar.gz
spec: Pass global ldflags into build
Pass global ldflags into build so that hardening works. Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r--keyutils.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/keyutils.spec b/keyutils.spec
index 1cbcf86..8b3b4b2 100644
--- a/keyutils.spec
+++ b/keyutils.spec
@@ -60,7 +60,8 @@ make \
SHAREDIR=%{datadir} \
RELEASE=.%{release} \
NO_GLIBC_KEYERR=1 \
- CFLAGS="-Wall $RPM_OPT_FLAGS -Werror"
+ CFLAGS="-Wall $RPM_OPT_FLAGS -Werror" \
+ LDFLAGS="%{?__global_ldflags}"
%install
rm -rf $RPM_BUILD_ROOT