blob: ad9dcd6824ac4d6c2d632e76374518df6c9f991b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-aa,v 1.18 2009/11/22 19:14:41 sno Exp $
Do not enable gcc flags for non-gcc compilers
--- configure.in.orig Mon Sep 21 22:14:36 2009
+++ configure.in Tue Nov 17 09:43:58 2009
@@ -143,9 +143,12 @@
AC_CHECK_HEADERS(unistd.h sys/mman.h)
# 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
#
|