diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-09-22 18:33:47 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-09-22 18:33:47 +0000 |
commit | c1d54169e0dc9317f2bfd3203a24a3c35175e44c (patch) | |
tree | 94d231ed4c80edf8c7fdaed09b3c8f1862abab32 /eclass | |
parent | ppc stable profile update (Manifest recommit) (diff) | |
download | gentoo-2-c1d54169e0dc9317f2bfd3203a24a3c35175e44c.tar.gz gentoo-2-c1d54169e0dc9317f2bfd3203a24a3c35175e44c.tar.bz2 gentoo-2-c1d54169e0dc9317f2bfd3203a24a3c35175e44c.zip |
uclibctoolize to fix libtool code found in configure scripts
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/libtool.eclass | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass index c97e0847176a..d153da074a7c 100644 --- a/eclass/libtool.eclass +++ b/eclass/libtool.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.29 2004/09/22 16:00:42 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.30 2004/09/22 18:33:47 vapier Exp $ # # Author: Martin Schlemmer <azarah@gentoo.org> # @@ -115,7 +115,7 @@ elibtoolize() { my_dirlist="$(ELT_find_ltmain_sh)" - for x in $* + for x in "$@" do case "${x}" in "--portage") @@ -256,4 +256,24 @@ elibtoolize() { fi cd "${start_dir}" + + uclibctoolize +} + +uclibctoolize() { + local targets="" + local x + + if [ -z "$@" ] ; then + targets="$(find ${S} -name configure)" + fi + + einfo "Applying uClibc/libtool patches ..." + for x in ${targets} ; do + if grep 'Transform linux' "${x}" >/dev/null ; then + ebegin " Fixing \${S}${x/${S}}" + patch -p0 "${x}" "${ELT_PATCH_DIR}/uclibc/configure.patch" > /dev/null + eend $? "PLEASE CHECK ${x}" + fi + done } |