summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Alfredsen <loki_val@gentoo.org>2009-05-03 20:03:10 +0000
committerPeter Alfredsen <loki_val@gentoo.org>2009-05-03 20:03:10 +0000
commit05c1d186cba26147468f38718ec58811b85f55a7 (patch)
treec7cd995c1a4cf394fac2d78dd8975f7d1d73ab8d /eclass/libtool.eclass
parentBump version to use upstream tarball instead of gem. (diff)
downloadgentoo-2-05c1d186cba26147468f38718ec58811b85f55a7.tar.gz
gentoo-2-05c1d186cba26147468f38718ec58811b85f55a7.tar.bz2
gentoo-2-05c1d186cba26147468f38718ec58811b85f55a7.zip
Import patch from Debian http://bugs.debian.org/347650 which hacks around libtool deplib re-ordering, which inhibits -Wl,--as-needed. You have to set -Wl,--as-needed seperately in LDFLAGS for this to do any good, -Wl,--as-needed,--something-else will not do, but you can set -Wl,--something-else afterwards. Also make sure eclasses I 'own' run elibtoolize so they can reap the benefit.
Diffstat (limited to 'eclass/libtool.eclass')
-rw-r--r--eclass/libtool.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
index ef928eddbcb7..c63c77a98958 100644
--- a/eclass/libtool.eclass
+++ b/eclass/libtool.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.82 2009/03/14 13:02:08 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.83 2009/05/03 20:03:10 loki_val Exp $
#
# Maintainer: base-system@gentoo.org
#
@@ -124,7 +124,7 @@ elibtoolize() {
local do_uclibc="yes"
local deptoremove=
local my_dirlist=
- local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp cross"
+ local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed"
local start_dir=${PWD}
my_dirlist=$(ELT_find_ltmain_sh)
@@ -219,6 +219,10 @@ elibtoolize() {
ret=$?
fi
;;
+ "as-needed")
+ ELT_walk_patches "${x}/ltmain.sh" "${y}"
+ ret=$?
+ ;;
"uclibc-conf")
if [[ -e ${x}/configure && \
-n $(grep 'Transform linux' "${x}/configure") ]] ; then