From c03050722b5811c5bceb2f824dc542e3b3c7c882 Mon Sep 17 00:00:00 2001 From: Igor Kotrasinski Date: Mon, 27 Nov 2017 10:37:21 +0100 Subject: [PATCH] Add relro flags Change-Id: I403d6dfeeb66e71e7f7ca84137e6bfa00360bf96 Signed-off-by: Igor Kotrasinski --- packaging/krb5.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/packaging/krb5.spec b/packaging/krb5.spec index e8313d8..0260cab 100644 --- a/packaging/krb5.spec +++ b/packaging/krb5.spec @@ -67,6 +67,7 @@ rm -f src/lib/krb5/krb/deltat.c cd src %{?asan:LDFLAGS+=" -ldl -pthread "} CFLAGS="$RPM_OPT_FLAGS -I/usr/include/et -fno-strict-aliasing -D_GNU_SOURCE -fPIC -fgnu89-inline -Wl,-pie -pie" \ +LDFLAGS="-z relro" \ ./configure \ --host=%{_host} --build=%{_build} \ --prefix=/usr/lib/mit \ -- 2.7.4