diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-05-19 21:31:21 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-05-19 21:31:21 +0000 |
commit | aa26710b444a2a976aa21ea983a09224c4c9cfa3 (patch) | |
tree | 9dfe2715c7b4fa5e3412c9b972ee1ff0f3af2ac0 /pkgs/development/compilers/gcc-4.5/softfp-hurd.patch | |
parent | fc763b15ebaa3b728bd70688f5d071f0db3ea9a7 (diff) | |
download | nixlib-aa26710b444a2a976aa21ea983a09224c4c9cfa3.tar nixlib-aa26710b444a2a976aa21ea983a09224c4c9cfa3.tar.gz nixlib-aa26710b444a2a976aa21ea983a09224c4c9cfa3.tar.bz2 nixlib-aa26710b444a2a976aa21ea983a09224c4c9cfa3.tar.lz nixlib-aa26710b444a2a976aa21ea983a09224c4c9cfa3.tar.xz nixlib-aa26710b444a2a976aa21ea983a09224c4c9cfa3.tar.zst nixlib-aa26710b444a2a976aa21ea983a09224c4c9cfa3.zip |
GCC 4.5: Add patch to fix GNU/Hurd builds.
svn path=/nixpkgs/trunk/; revision=21903
Diffstat (limited to 'pkgs/development/compilers/gcc-4.5/softfp-hurd.patch')
-rw-r--r-- | pkgs/development/compilers/gcc-4.5/softfp-hurd.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/compilers/gcc-4.5/softfp-hurd.patch b/pkgs/development/compilers/gcc-4.5/softfp-hurd.patch new file mode 100644 index 000000000000..7e2a8a9c2900 --- /dev/null +++ b/pkgs/development/compilers/gcc-4.5/softfp-hurd.patch @@ -0,0 +1,32 @@ +This patch fixes undefined references to softp symbols (__multf3, __fixunstfsi, +__subtf3, etc.) in libgcc_s.so on GNU/Hurd. + +Taken from <http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00602.html>, with second +hunk adjusted so that it applies to GCC 4.5.0. + +diff --git a/gcc/config.gcc b/gcc/config.gcc +index 9e499cb..9aec392 100644 +--- a/gcc/config.gcc ++++ b/gcc/config.gcc +@@ -3070,7 +3070,9 @@ case ${target} in + i[34567]86-*-darwin* | x86_64-*-darwin*) + tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp" + ;; +- i[34567]86-*-linux* | x86_64-*-linux* | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu) ++ i[34567]86-*-linux* | x86_64-*-linux* | \ ++ i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \ ++ i[34567]86-*-gnu*) + tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp i386/t-linux" + ;; + ia64*-*-linux*) +diff --git a/libgcc/config.host b/libgcc/config.host +--- a/libgcc/config.host ++++ b/libgcc/config.host +@@ -600,6 +600,7 @@ case ${host} in + i[34567]86-*-darwin* | x86_64-*-darwin* | \ + i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \ + i[34567]86-*-linux* | x86_64-*-linux* | \ ++ i[34567]86-*-gnu* | \ + i[34567]86-*-solaris2* | \ + i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*) + if test "${host_address}" = 32; then |