Add Partial RELRO flags 63/301763/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 21 Nov 2023 03:25:24 +0000 (12:25 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 22 Nov 2023 09:30:17 +0000 (18:30 +0900)
Change-Id: I6d8662a8829e0bca4843bc00168f85437fad25c4

packaging/libpciaccess.spec

index d227139..5a81b29 100644 (file)
@@ -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}