From 61171e3f15f6c6c85c23f768fb86d34949151006 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 29 Mar 2007 13:37:39 +0000 Subject: [PATCH] * Fix GCC 3.3. svn path=/nixpkgs/trunk/; revision=8478 --- pkgs/development/compilers/gcc-3.3/builder.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/gcc-3.3/builder.sh b/pkgs/development/compilers/gcc-3.3/builder.sh index 56a38fced588..e72849cdcceb 100644 --- a/pkgs/development/compilers/gcc-3.3/builder.sh +++ b/pkgs/development/compilers/gcc-3.3/builder.sh @@ -49,7 +49,10 @@ postConfigure() { # Figure out what extra flags to pass to the gcc compilers # being generated to make sure that they use our glibc. - extraFlags="$(cat $NIX_GCC/nix-support/libc-cflags) $(cat $NIX_GCC/nix-support/libc-ldflags) $(cat $NIX_GCC/nix-support/libc-ldflags-before)" + extraFlags="$(cat $NIX_GCC/nix-support/libc-cflags)" + for i in $(cat $NIX_GCC/nix-support/libc-ldflags) $(cat $NIX_GCC/nix-support/libc-ldflags-before); do + extraFlags="$extraFlags -Wl,$i" + done # Use *real* header files, otherwise a limits.h is generated # that does not include Glibc's limits.h (notably missing