diff options
author | abs <abs@pkgsrc.org> | 2001-11-22 00:55:48 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2001-11-22 00:55:48 +0000 |
commit | dbfb14322de63dc2826ab7ca21ce12e980cb5922 (patch) | |
tree | 307db8c1cd84360f6285f5b87f94578199ca42cd /textproc/expat | |
parent | 638788de07b087c0756b64bf69382271e1cdc4d8 (diff) | |
download | pkgsrc-dbfb14322de63dc2826ab7ca21ce12e980cb5922.tar.gz |
Handle gcc pre-2.8 - do not use -fexceptions in that case.
So I found a 1.3 box running pkgsrc and wanted to update apache...
Diffstat (limited to 'textproc/expat')
-rw-r--r-- | textproc/expat/distinfo | 3 | ||||
-rw-r--r-- | textproc/expat/patches/patch-aa | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/textproc/expat/distinfo b/textproc/expat/distinfo index b257425fda7..6549ab44b59 100644 --- a/textproc/expat/distinfo +++ b/textproc/expat/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.3 2001/08/07 11:16:55 drochner Exp $ +$NetBSD: distinfo,v 1.4 2001/11/22 00:55:48 abs Exp $ SHA1 (expat-1.95.2.tar.gz) = 5705828c7b02d45628a5ec95a75a07fe38a834f1 Size (expat-1.95.2.tar.gz) = 190316 bytes +SHA1 (patch-aa) = 5068dfd082c4a106c108aaf1227e9b0008be3c99 diff --git a/textproc/expat/patches/patch-aa b/textproc/expat/patches/patch-aa new file mode 100644 index 00000000000..690ddd93dfc --- /dev/null +++ b/textproc/expat/patches/patch-aa @@ -0,0 +1,20 @@ +$NetBSD: patch-aa,v 1.1 2001/11/22 00:55:49 abs Exp $ + +--- configure.orig Thu Nov 22 00:23:29 2001 ++++ configure +@@ -1757,7 +1757,14 @@ + + + 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 + + |