summaryrefslogtreecommitdiff
path: root/devel
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
commitb94430381a14b1cb7962661e683c163c70880cbc (patch)
treeeb66051da579ba686d78a60fabae49e21520711d /devel
parent7675a3ce33dc285497f4a133f141cbdb01b00c84 (diff)
downloadpkgsrc-b94430381a14b1cb7962661e683c163c70880cbc.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.
Diffstat (limited to 'devel')
-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