From 7625850ab3376773ca1c2fa8929b61563acb14ed Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Mon, 23 Jan 2006 11:53:33 +0000 Subject: [PATCH] a patch which defines FLAGS_FOR_TARGET. This patch is not enabled by default svn path=/nixpkgs/trunk/; revision=4585 --- .../compilers/gcc-4.0/gcc-4.0.2-cxx.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pkgs/development/compilers/gcc-4.0/gcc-4.0.2-cxx.patch diff --git a/pkgs/development/compilers/gcc-4.0/gcc-4.0.2-cxx.patch b/pkgs/development/compilers/gcc-4.0/gcc-4.0.2-cxx.patch new file mode 100644 index 000000000000..b9d558d5c175 --- /dev/null +++ b/pkgs/development/compilers/gcc-4.0/gcc-4.0.2-cxx.patch @@ -0,0 +1,12 @@ +diff -ruN gcc-4.0.2/configure gcc-4.0.2.new/configure +--- gcc-4.0.2/configure 2005-09-13 09:01:28.000000000 +0200 ++++ gcc-4.0.2.new/configure 2006-01-20 20:38:09.000000000 +0100 +@@ -3471,7 +3471,7 @@ + # being built; programs in there won't even run. + if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then + # Search for pre-installed headers if nothing else fits. +- FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' ++ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include $(NIX_EXTRA_CFLAGS)' + fi + + if test "x${use_gnu_ld}" = x &&