]> git.pld-linux.org Git - packages/efivar.git/commitdiff
- disable -Waddress-of-packed-member on gcc 9+ auto/th/efivar-37-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 12 Sep 2019 19:08:20 +0000 (21:08 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 12 Sep 2019 19:08:20 +0000 (21:08 +0200)
efivar.spec

index aa32ef347becff4b19e8043efa3321903f9d1a89..49a14d6b2f668788304d02e8f59695380c0baa34 100644 (file)
@@ -73,9 +73,14 @@ Statyczna biblioteka efivar.
 %patch0 -p1
 
 %build
+%if "%{cc_version}" >= "9"
+WFLAGS=-Wno-address-of-packed-member
+%else
+WFLAGS=
+%endif
 %{__make} -j1 all static \
        CC="%{__cc}" \
-       CFLAGS="%{rpmcflags}" \
+       CFLAGS="%{rpmcflags} $WFLAGS" \
        LDFLAGS="%{rpmldflags} -Wl,-z,muldefs" \
        %{!?with_static:STATICBINTARGETS=} \
        %{!?with_static_libs:STATICLIBTARGETS=} \
This page took 0.031061 seconds and 4 git commands to generate.