summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2013-04-20 09:18:36 +0000
committertron <tron@pkgsrc.org>2013-04-20 09:18:36 +0000
commit25c827e56360a0d542fc65d3ec5be8116f0222ac (patch)
treeeb66051da579ba686d78a60fabae49e21520711d
parent31fb03008734e9cea398e3d9e7f1e1902bde390a (diff)
downloadpkgsrc-25c827e56360a0d542fc65d3ec5be8116f0222ac.tar.gz
Fix build under Mac OS X by surpressing the GCC compiler option
"-Werror=missing-prototypes". At least one of the system header files ("emmintrin.h") cannot be compiled with this constraint.
-rw-r--r--devel/glib2/Makefile.common6
1 files changed, 5 insertions, 1 deletions
diff --git a/devel/glib2/Makefile.common b/devel/glib2/Makefile.common
index b4fd9166668..4afc32044ee 100644
--- a/devel/glib2/Makefile.common
+++ b/devel/glib2/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.27 2013/04/19 22:21:41 prlw1 Exp $
+# $NetBSD: Makefile.common,v 1.28 2013/04/20 09:18:36 tron Exp $
#
# used by devel/glib2/Makefile
# used by devel/gdbus-codegen/Makefile
@@ -67,6 +67,10 @@ SUBST_MESSAGE.thr= Fixing libgthread.
CONFIGURE_ENV+= gt_cv_c_wchar_t=no
.endif
+.if ${OPSYS} == "Darwin"
+BUILDLINK_TRANSFORM+= rm:-Werror=missing-prototypes
+.endif
+
.if ${OPSYS} == "HPUX"
CONFIGURE_ENV+= ac_cv_func_mmap_fixed_mapped=yes
.endif