pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/kdebase3 Can't disable exceptions with Clang, sinc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4369a0de4033
branches:  trunk
changeset: 602750:4369a0de4033
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Apr 19 21:10:24 2012 +0000

description:
Can't disable exceptions with Clang, since OpenEXR depends on them.

diffstat:

 x11/kdebase3/hacks.mk |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 6d9f1fca0ab8 -r 4369a0de4033 x11/kdebase3/hacks.mk
--- a/x11/kdebase3/hacks.mk     Thu Apr 19 21:09:29 2012 +0000
+++ b/x11/kdebase3/hacks.mk     Thu Apr 19 21:10:24 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2007/10/31 11:56:44 markd Exp $
+# $NetBSD: hacks.mk,v 1.2 2012/04/19 21:10:24 joerg Exp $
 
 .if !defined(KDEBASE3_HACKS_MK)
 KDEBASE3_HACKS_MK=     # defined
@@ -12,4 +12,10 @@
        ${MV} ${BUILDLINK_DIR}/include/X11/X.h.new ${BUILDLINK_DIR}/include/X11/X.h
 .endif
 
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+# OpenEXR uses exceptions in the header files
+BUILDLINK_TRANSFORM+=  rm:-fno-exceptions
 .endif
+
+.endif



Home | Main Index | Thread Index | Old Index