Add SC(Stack Canary) flags 67/301767/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 22 Nov 2023 08:25:08 +0000 (17:25 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 22 Nov 2023 09:29:19 +0000 (18:29 +0900)
Change-Id: I94cfd50d012676000f9bb26c5ae1e3400154ecce

packaging/libpciaccess.spec

index 5a81b29..6506160 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 -Wl,-z,relro"
+export CFLAGS="-O2 -g2 -pipe -w -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -fmessage-length=0 -Wl,--as-needed -Wl,-z,relro"
 %configure --disable-static \
            --with-pciids-path=%{_datadir}/misc --with-zlib
 make %{?_smp_mflags}