change the CFLAGS 79/221079/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 27 Dec 2019 03:45:55 +0000 (12:45 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 27 Dec 2019 03:48:33 +0000 (12:48 +0900)
This commit is for avoiding the build-break due to the gcc 6.0
at Tizen 6.0 by -Wall option.
DO NOT inherite the CFLAGS from the global one of the OBS.
libpciaccess just remain because of the build dependency.
Any binary does not use this package.

Change-Id: I7e4af60af6c1c442c9069ac3dc42442df1cc5250

packaging/libpciaccess.spec

index 4578ca4..d227139 100644 (file)
@@ -42,6 +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"
 %configure --disable-static \
            --with-pciids-path=%{_datadir}/misc --with-zlib
 make %{?_smp_mflags}