commit: 8cc4d3b9a21d903a0516b9595c365c5b6fba386e Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Sat Sep 29 20:30:02 2018 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Sat Sep 29 20:30:02 2018 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=8cc4d3b9
3.4.6: add 92_all_libtool-pass-all.patch Fix stared library detection by libtool. Before the patch libtool was not able to see through linker scripts and rejected -lc and -lm existence. Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> 3.4.6/gentoo/92_all_libtool-pass-all.patch | 170 +++++++++++++++++++++++++++++ 3.4.6/gentoo/README.history | 1 + 2 files changed, 171 insertions(+) diff --git a/3.4.6/gentoo/92_all_libtool-pass-all.patch b/3.4.6/gentoo/92_all_libtool-pass-all.patch new file mode 100644 index 0000000..27d493f --- /dev/null +++ b/3.4.6/gentoo/92_all_libtool-pass-all.patch @@ -0,0 +1,170 @@ +Unbreak libc and libm detection by libtool when those +are linker scripts: use file presence as a signal, +not the output of 'file' command on linux-gnu*. + +Backport of upstream patch: + +From 7f93fe7a469fb4d342d90736e801fcafb23b5a8b Mon Sep 17 00:00:00 2001 +From: kcook <kcook@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Wed, 24 Nov 2004 22:04:38 +0000 +Subject: [PATCH] 2004-11-24 Kelley Cook <kc...@gcc.gnu.org> + + * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Import linux-gnu case + from CVS libtool to always pass_all. + * boehm-gc/configure: Regenerate. + * libffi/configure: Regenerate. + * libgfortran/configure: Regenerate. + * libjava/configure: Regenerate. + * libobjc/configure: Regenerate. + * libstdc++-v3/configure: Regenerate. + * zlib/configure: Regenerate. + + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91200 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + ChangeLog | 5 + + boehm-gc/ChangeLog | 4 + + boehm-gc/configure | 11 +- + libffi/ChangeLog | 4 + + libffi/configure | 11 +- + libgfortran/ChangeLog | 4 + + libgfortran/configure | 13 +- + libjava/ChangeLog | 4 + + libjava/aclocal.m4 | 2 +- + libjava/configure | 322 +++++++++++++++++++++++++---------------- + libobjc/ChangeLog | 4 + + libobjc/configure | 13 +- + libstdc++-v3/ChangeLog | 4 + + libstdc++-v3/configure | 13 +- + libtool.m4 | 9 +- + zlib/ChangeLog.gcj | 4 + + zlib/configure | 11 +- + 17 files changed, 249 insertions(+), 189 deletions(-) + +--- a/boehm-gc/configure ++++ b/boehm-gc/configure +@@ -4317,14 +4317,7 @@ irix5* | irix6*) + + # This must be Linux ELF. + linux-gnu*) +- case $host_cpu in +- alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) +- lt_cv_deplibs_check_method=pass_all ;; +- *) +- # glibc up to 2.1.1 does not perform some relocations on ARM +- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; +- esac +- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ++ lt_cv_deplibs_check_method=pass_all + ;; + + netbsd* | knetbsd*-gnu) +--- a/libffi/configure ++++ b/libffi/configure +@@ -3454,14 +3454,7 @@ irix5* | irix6*) + + # This must be Linux ELF. + linux-gnu*) +- case $host_cpu in +- alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) +- lt_cv_deplibs_check_method=pass_all ;; +- *) +- # glibc up to 2.1.1 does not perform some relocations on ARM +- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; +- esac +- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ++ lt_cv_deplibs_check_method=pass_all + ;; + + netbsd* | knetbsd*-gnu) +--- a/libjava/configure ++++ b/libjava/configure +@@ -4337,14 +4347,7 @@ irix5* | irix6*) + + # This must be Linux ELF. + linux-gnu*) +- case $host_cpu in +- alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) +- lt_cv_deplibs_check_method=pass_all ;; +- *) +- # glibc up to 2.1.1 does not perform some relocations on ARM +- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; +- esac +- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ++ lt_cv_deplibs_check_method=pass_all + ;; + + netbsd* | knetbsd*-gnu) +--- a/libobjc/configure ++++ b/libobjc/configure +@@ -3269,14 +3269,7 @@ irix5* | irix6*) + + # This must be Linux ELF. + linux-gnu*) +- case $host_cpu in +- alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) +- lt_cv_deplibs_check_method=pass_all ;; +- *) +- # glibc up to 2.1.1 does not perform some relocations on ARM +- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; +- esac +- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ++ lt_cv_deplibs_check_method=pass_all + ;; + + netbsd* | knetbsd*-gnu) +index e87d8b27130..0024e82faa2 100755 +--- a/libstdc++-v3/configure ++++ b/libstdc++-v3/configure +@@ -3995,14 +3995,7 @@ irix5* | irix6*) + + # This must be Linux ELF. + linux-gnu*) +- case $host_cpu in +- alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) +- lt_cv_deplibs_check_method=pass_all ;; +- *) +- # glibc up to 2.1.1 does not perform some relocations on ARM +- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; +- esac +- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ++ lt_cv_deplibs_check_method=pass_all + ;; + + netbsd* | knetbsd*-gnu) +--- a/libtool.m4 ++++ b/libtool.m4 +@@ -679,14 +679,7 @@ irix5* | irix6*) + + # This must be Linux ELF. + linux-gnu*) +- case $host_cpu in +- alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) +- lt_cv_deplibs_check_method=pass_all ;; +- *) +- # glibc up to 2.1.1 does not perform some relocations on ARM +- lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'] ;; +- esac +- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ++ lt_cv_deplibs_check_method=pass_all + ;; + + netbsd* | knetbsd*-gnu) +--- a/zlib/configure ++++ b/zlib/configure +@@ -3423,14 +3423,7 @@ irix5* | irix6*) + + # This must be Linux ELF. + linux-gnu*) +- case $host_cpu in +- alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) +- lt_cv_deplibs_check_method=pass_all ;; +- *) +- # glibc up to 2.1.1 does not perform some relocations on ARM +- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; +- esac +- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ++ lt_cv_deplibs_check_method=pass_all + ;; + + netbsd* | knetbsd*-gnu) diff --git a/3.4.6/gentoo/README.history b/3.4.6/gentoo/README.history index a2e067e..15cf5c5 100644 --- a/3.4.6/gentoo/README.history +++ b/3.4.6/gentoo/README.history @@ -1,6 +1,7 @@ 1.9 [pending] - 00_all_gcc-trampolinewarn.patch + 91_all_ucontext-to-ucontext_t.patch + + 92_all_libtool-pass-all.patch 1.8 06 Apr 2015 + 10_all_gcc-3.4.6-c-parse-bison-3.patch