[packages/dwdiff] fix build with gcc 10

atler atler at pld-linux.org
Wed Jul 1 21:07:14 CEST 2020


commit e1d5996c14479399eabc3be1f14506d9b99d2b28
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Jul 1 21:06:00 2020 +0200

    fix build with gcc 10
    
    disabled -fno-common for anonymous struct

 dwdiff.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/dwdiff.spec b/dwdiff.spec
index 4d55f84..a337717 100644
--- a/dwdiff.spec
+++ b/dwdiff.spec
@@ -52,7 +52,7 @@ wyświetlane.
 	--prefix="$RPM_BUILD_ROOT%{_prefix}" \
 	--mandir="$RPM_BUILD_ROOT%{_mandir}" \
 	CC="%{__cc}" \
-	CFLAGS="%{rpmcflags}" \
+	CFLAGS="%{rpmcflags} -fcommon" \
 	LDFLAGS="%{rpmldflags}"
 %{__make}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dwdiff.git/commitdiff/112d74620ff6ce1012ba6c3043a93bc0684e4ba6



More information about the pld-cvs-commit mailing list