summaryrefslogtreecommitdiff
path: root/lang/gcc3/patches/patch-af
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2004-04-10 15:47:08 +0000
committerseb <seb@pkgsrc.org>2004-04-10 15:47:08 +0000
commit1cd5dcea8a82cbcaaa2aaf8597a1af3beae8d04b (patch)
tree5cffc6a665f288bd7381afc1197c247bd6a82fa2 /lang/gcc3/patches/patch-af
parentd1fca4d138c7463152bd6a18b0ef535e77e11485 (diff)
downloadpkgsrc-1cd5dcea8a82cbcaaa2aaf8597a1af3beae8d04b.tar.gz
Make all gcc3-* packages use a single distinfo file from gcc3/distinfo and
a single patch directory from gcc3/patches/. Also Move gcc3-c/{Makefile.common,language.mk} into gcc3/.
Diffstat (limited to 'lang/gcc3/patches/patch-af')
-rw-r--r--lang/gcc3/patches/patch-af18
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/gcc3/patches/patch-af b/lang/gcc3/patches/patch-af
new file mode 100644
index 00000000000..e98783c4a8a
--- /dev/null
+++ b/lang/gcc3/patches/patch-af
@@ -0,0 +1,18 @@
+$NetBSD: patch-af,v 1.3 2004/04/10 15:47:08 seb Exp $
+
+--- gcc/cppspec.c Wed Jul 23 02:40:54 2003
++++ gcc/cppspec.c Fri Jul 25 17:57:41 2003
+@@ -85,6 +85,13 @@
+
+ is_cpp_driver = 1;
+
++ /* NetBSD uses __GNUC__ and friends in header files processed with cpp
++ regularly. Default to old behaviour here. XXX - move me to
++ config/netbsd.h "DEFAULT_CPP_NEED_NO_GCC". */
++#ifdef DEFAULT_CPP_NEED_NO_GCC
++ need_no_gcc = DEFAULT_CPP_NEED_NO_GCC;
++#endif
++
+ /* First pass. If we see an -S or -c, barf. If we see an input file,
+ turn off read_stdin. If we see a second input file, it is actually
+ the output file. If we see a third input file, barf. */