From 02ad94d7620d8d6ac51b328fef0437e13fdc230e Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 19 Dec 2012 12:50:00 +0000 Subject: Tell clang to not care about extern "C" functions returning non-POD types. --- devel/xulrunner10/hacks.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'devel/xulrunner10') 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 -- cgit v1.2.3