summaryrefslogtreecommitdiff
path: root/devel/pango/patches/patch-ab
blob: 6b9fcf0a838096c44425a18f1d1fe818056dc7e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ab,v 1.16 2009/11/22 19:14:41 sno Exp $

Do not enable gcc flags for non-gcc compilers

--- configure.orig	Tue Nov 17 09:42:57 2009
+++ configure	Tue Nov 17 09:44:27 2009
@@ -6106,9 +6106,12 @@
 
 
 # Make sure we don't link to libstdc++ (needs de-gcc-fication)
-CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
+if test "$GCC" = yes; then
+  CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
+else
+  CXXFLAGS="$CXXFLAGS -features=%all,no%except"
+fi
 
-
 #
 # Win32 stuff
 #