summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangyeon Lee <cyeon.lee@samsung.com>2023-11-21 12:25:24 +0900
committerChangyeon Lee <cyeon.lee@samsung.com>2023-11-22 18:30:17 +0900
commitd6ea3982ef40c3105e61bd1af7e708cee79fe010 (patch)
treeeaff9b5c5e9238956cb55b75ead59869e31c5e43
parentd4fc31c6e19836cb9b90ded13912d9cef913fdd2 (diff)
downloadlibpciaccess-d6ea3982ef40c3105e61bd1af7e708cee79fe010.tar.gz
libpciaccess-d6ea3982ef40c3105e61bd1af7e708cee79fe010.tar.bz2
libpciaccess-d6ea3982ef40c3105e61bd1af7e708cee79fe010.zip
Add Partial RELRO flags
Change-Id: I6d8662a8829e0bca4843bc00168f85437fad25c4
-rw-r--r--packaging/libpciaccess.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/libpciaccess.spec b/packaging/libpciaccess.spec
index d227139..5a81b29 100644
--- a/packaging/libpciaccess.spec
+++ b/packaging/libpciaccess.spec
@@ -42,7 +42,7 @@ cp %{SOURCE1001} .
NOCONFIGURE=1
%autogen
export CFLAGS="$CFLAGS -w"
-export CFLAGS="-O2 -g2 -pipe -w -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -fmessage-length=0 -Wl,--as-needed"
+export CFLAGS="-O2 -g2 -pipe -w -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -fmessage-length=0 -Wl,--as-needed -Wl,-z,relro"
%configure --disable-static \
--with-pciids-path=%{_datadir}/misc --with-zlib
make %{?_smp_mflags}