[ expat-Bugs-484419 ] -fexceptions not supported in older gcc
noreply@sourceforge.net
noreply@sourceforge.net
Fri Dec 7 03:05:02 2001
Bugs item #484419, was opened at 2001-11-21 16:39
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=484419&group_id=10127
Category: Build control
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Greg Stein (gstein)
Summary: -fexceptions not supported in older gcc
Initial Comment:
At least gcc 2.7.x does not support -fexceptions.
The following patch to configure.in disables
-fexceptions from CFLAGS for version of gcc prior to 2.8.
--- configure.in.orig Thu Nov 22 00:23:32 2001
+++ configure.in
@@ -63,7 +63,14 @@
AC_PROG_INSTALL
if test "$GCC" = yes ; then
- CFLAGS="$CFLAGS -Wall -Wmissing-prototypes
-Wstrict-prototypes -fexceptions
"
+ CFLAGS="$CFLAGS -Wall -Wmissing-prototypes
-Wstrict-prototypes"
+ ${CC-cc} -v >conftest.c 2>&1
+ gcc_pre_fexceptions=`
+ awk '/gcc version/{sub("^[^0-9]*","",$3);if
($3<2.8){print "true"} }' \
+ conftest.c`
+ if [ -z "$gcc_pre_fexceptions" ]; then
+ CFLAGS="$CFLAGS -fexceptions"
+ fi
fi
dnl Checks for libraries.
----------------------------------------------------------------------
>Comment By: Greg Stein (gstein)
Date: 2001-12-07 03:04
Message:
Logged In: YES
user_id=6501
Fred integrated something like this into configure.in.
Closed as fixed in the upcoming release.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=484419&group_id=10127