From: SooChan Lim Date: Fri, 27 Dec 2019 03:45:55 +0000 (+0900) Subject: change the CFLAGS X-Git-Tag: accepted/tizen/6.0/unified/20201030.110245~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2dd8038039a24a2b8aef74322847e96df0aa327;p=platform%2Fupstream%2Flibpciaccess.git change the CFLAGS 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 --- diff --git a/packaging/libpciaccess.spec b/packaging/libpciaccess.spec index 4578ca4..d227139 100644 --- a/packaging/libpciaccess.spec +++ b/packaging/libpciaccess.spec @@ -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}