pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/libdca Avoid clang bugs on Darwin which result i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0dbde459fc86
branches:  trunk
changeset: 645319:0dbde459fc86
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Jan 27 00:36:22 2015 +0000

description:
Avoid clang bugs on Darwin which result in "duplicate symbol ___sputc".

diffstat:

 audio/libdca/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 4ae7ed5fbfe5 -r 0dbde459fc86 audio/libdca/Makefile
--- a/audio/libdca/Makefile     Mon Jan 26 23:26:48 2015 +0000
+++ b/audio/libdca/Makefile     Tue Jan 27 00:36:22 2015 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index