summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2015-01-27 00:36:22 +0000
committerjperkin <jperkin@pkgsrc.org>2015-01-27 00:36:22 +0000
commitd34f3285cda3daa9f8cc9c48684516be7350ab77 (patch)
tree70fab8e4252bba7b83a338a982caf1dd5401e04a
parentd35f92de10b655f2bfc281853178797a7cf96116 (diff)
downloadpkgsrc-d34f3285cda3daa9f8cc9c48684516be7350ab77.tar.gz
Avoid clang bugs on Darwin which result in "duplicate symbol ___sputc".
-rw-r--r--audio/libdca/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/audio/libdca/Makefile b/audio/libdca/Makefile
index ae8d7d6ce15..c518ac8267f 100644
--- a/audio/libdca/Makefile
+++ b/audio/libdca/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2012/09/12 00:24:41 asau Exp $
+# $NetBSD: Makefile,v 1.12 2015/01/27 00:36:22 jperkin Exp $
#
DISTNAME= libdca-0.0.5
@@ -21,4 +21,11 @@ GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config
USE_LIBTOOL= yes
+.include "../../mk/compiler.mk"
+
+# Avoid clang bugs resulting in "duplicate symbol ___sputc".
+.if !empty(PKGSRC_COMPILER:Mclang) && ${OPSYS} == "Darwin"
+CFLAGS+= -std=gnu89
+.endif
+
.include "../../mk/bsd.pkg.mk"