public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gcc-patches:master commit in: 3.4.6/gentoo/
Date: Sat, 29 Sep 2018 20:31:07 +0000 (UTC)	[thread overview]
Message-ID: <1538253002.8cc4d3b9a21d903a0516b9595c365c5b6fba386e.slyfox@gentoo> (raw)

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  <kcook@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


             reply	other threads:[~2018-09-29 20:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-29 20:31 Sergei Trofimovich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-10-27 19:45 [gentoo-commits] proj/gcc-patches:master commit in: 3.4.6/gentoo/ Sergei Trofimovich
2019-10-21 22:16 Sergei Trofimovich
2019-06-15 19:11 Sergei Trofimovich
2019-06-15 19:01 Sergei Trofimovich
2019-06-12 21:30 Sergei Trofimovich
2019-06-01 10:01 Sergei Trofimovich
2018-11-30  7:37 Sergei Trofimovich
2018-09-30 12:27 Sergei Trofimovich
2018-09-16 16:10 Sergei Trofimovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1538253002.8cc4d3b9a21d903a0516b9595c365c5b6fba386e.slyfox@gentoo \
    --to=slyfox@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox