diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-02-13 19:41:37 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-02-13 19:41:37 +0000 |
commit | 89815eb9a00150c34edcc5872bbc93b9122decdc (patch) | |
tree | de371da01f88392d8e0e2ec99fa66abbbb1cc388 /pkgs/build-support/gcc-wrapper | |
parent | 908d8286ce779e829609c9e1075c81f2318f6ff4 (diff) | |
download | nixlib-89815eb9a00150c34edcc5872bbc93b9122decdc.tar nixlib-89815eb9a00150c34edcc5872bbc93b9122decdc.tar.gz nixlib-89815eb9a00150c34edcc5872bbc93b9122decdc.tar.bz2 nixlib-89815eb9a00150c34edcc5872bbc93b9122decdc.tar.lz nixlib-89815eb9a00150c34edcc5872bbc93b9122decdc.tar.xz nixlib-89815eb9a00150c34edcc5872bbc93b9122decdc.tar.zst nixlib-89815eb9a00150c34edcc5872bbc93b9122decdc.zip |
* gcc-wrapper: Propagate the wrapped gcc, binutils and glibc to the
user environment. (NIXPKGS-63) svn path=/nixpkgs/branches/stdenv-updates/; revision=10664
Diffstat (limited to 'pkgs/build-support/gcc-wrapper')
-rw-r--r-- | pkgs/build-support/gcc-wrapper/builder.sh | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/pkgs/build-support/gcc-wrapper/builder.sh b/pkgs/build-support/gcc-wrapper/builder.sh index c263b3f330ed..7a2f9c20f27f 100644 --- a/pkgs/build-support/gcc-wrapper/builder.sh +++ b/pkgs/build-support/gcc-wrapper/builder.sh @@ -53,13 +53,13 @@ doSubstitute() { # Can't use substitute() here, because replace may not have been # built yet (in the bootstrap). sed \ - -e "s^@out@^$out^" \ - -e "s^@shell@^$shell^" \ - -e "s^@gcc@^$gcc^" \ - -e "s^@gccProg@^$gccProg^" \ - -e "s^@binutils@^$binutils^" \ - -e "s^@libc@^$libc^" \ - -e "s^@ld@^$ldPath/ld^" \ + -e "s^@out@^$out^g" \ + -e "s^@shell@^$shell^g" \ + -e "s^@gcc@^$gcc^g" \ + -e "s^@gccProg@^$gccProg^g" \ + -e "s^@binutils@^$binutils^g" \ + -e "s^@libc@^$libc^g" \ + -e "s^@ld@^$ldPath/ld^g" \ < "$src" > "$dst" } @@ -111,3 +111,11 @@ doSubstitute "$addFlags" "$out/nix-support/add-flags.sh" doSubstitute "$setupHook" "$out/nix-support/setup-hook" cp -p $utils $out/nix-support/utils.sh + + +# Propagate the wrapped gcc so that if you install the wrapper, you get +# tools like gcov, the manpages, etc. as well (including for binutils +# and Glibc). +if test -z "$nativeTools"; then + echo $gcc $binutils $libc > $out/nix-support/propagated-user-env-packages +fi |