pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/glib2
Module Name: pkgsrc
Committed By: wiz
Date: Tue Jul 23 05:25:16 UTC 2024
Modified Files:
pkgsrc/devel/glib2: Makefile
Log Message:
glib2: add workaround for gcc 4 compiler bug
Fixes CentOS 7 build.
>From Phil Krylov in PR 58457.
To generate a diff of this commit:
cvs rdiff -u -r1.305 -r1.306 pkgsrc/devel/glib2/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/glib2/Makefile
diff -u pkgsrc/devel/glib2/Makefile:1.305 pkgsrc/devel/glib2/Makefile:1.306
--- pkgsrc/devel/glib2/Makefile:1.305 Wed Jun 12 10:15:59 2024
+++ pkgsrc/devel/glib2/Makefile Tue Jul 23 05:25:16 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.305 2024/06/12 10:15:59 adam Exp $
+# $NetBSD: Makefile,v 1.306 2024/07/23 05:25:16 wiz Exp $
.include "Makefile.common"
@@ -87,6 +87,14 @@ PKGCONFIG_OVERRIDE_STAGE= post-configure
# to run gdbus-codegen to generate gdbus-daemon-generated.{h,c}
PYTHON_FOR_BUILD_ONLY= yes
+.include "../../mk/compiler.mk"
+
+# Work around GCC 4.x bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113
+# preventing a successful CentOS 7 build
+.if !empty(CC_VERSION:Mgcc-4.*)
+BUILDLINK_TRANSFORM+= rm:-Werror=missing-prototypes
+.endif
+
post-extract:
${CHMOD} +x ${WRKSRC}/gio/tests/gengiotypefuncs.py
Home |
Main Index |
Thread Index |
Old Index