summaryrefslogtreecommitdiff
path: root/devel/xulrunner10
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-12-19 12:50:00 +0000
committerjoerg <joerg@pkgsrc.org>2012-12-19 12:50:00 +0000
commit02ad94d7620d8d6ac51b328fef0437e13fdc230e (patch)
treec7def1fc1f10c882dba60e4f6aba47636cb9116f /devel/xulrunner10
parent3edcf1612c9aa4af24c10688d826f9a88d51c572 (diff)
downloadpkgsrc-02ad94d7620d8d6ac51b328fef0437e13fdc230e.tar.gz
Tell clang to not care about extern "C" functions returning non-POD
types.
Diffstat (limited to 'devel/xulrunner10')
-rw-r--r--devel/xulrunner10/hacks.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/devel/xulrunner10/hacks.mk b/devel/xulrunner10/hacks.mk
index d5df6709119..68cdfa61691 100644
--- a/devel/xulrunner10/hacks.mk
+++ b/devel/xulrunner10/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1.1.1 2012/03/15 08:58:27 ryoon Exp $
+# $NetBSD: hacks.mk,v 1.2 2012/12/19 12:50:00 joerg Exp $
.if !defined(XULRUNNER10_HACKS_MK)
XULRUNNER10_HACKS_MK= defined
@@ -12,4 +12,8 @@ PKG_HACKS+= optimization
BUILDLINK_TRANSFORM+= rm:-march=[-_A-Za-z0-9]*
.endif
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+= -Wno-return-type-c-linkage
+.endif
+
.endif # XULRUNNER10_HACKS_MK