summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-19 23:27:44 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-19 23:27:44 +0000
commit81b05b075930b9afbc0c71398157503849d36713 (patch)
tree5bf06f9ce791e488f6bbf897e97afac0384696ca /sys-devel/libtool/files
parentmake sure $ROOT has a trailing / (diff)
downloadhistorical-81b05b075930b9afbc0c71398157503849d36713.tar.gz
historical-81b05b075930b9afbc0c71398157503849d36713.tar.bz2
historical-81b05b075930b9afbc0c71398157503849d36713.zip
Update the infer tag patch to go both ways #77921.
Package-Manager: portage-2.0.51-r13
Diffstat (limited to 'sys-devel/libtool/files')
-rw-r--r--sys-devel/libtool/files/1.5.6/libtool-1.5-filter-host-tags.patch5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys-devel/libtool/files/1.5.6/libtool-1.5-filter-host-tags.patch b/sys-devel/libtool/files/1.5.6/libtool-1.5-filter-host-tags.patch
index 9145bc76cdca..d70b1b7befc2 100644
--- a/sys-devel/libtool/files/1.5.6/libtool-1.5-filter-host-tags.patch
+++ b/sys-devel/libtool/files/1.5.6/libtool-1.5-filter-host-tags.patch
@@ -1,16 +1,19 @@
--- libtool-1.5.10/ltmain.in.orig 2004-11-09 13:43:24.290875562 -0500
+++ libtool-1.5.10/ltmain.in 2004-11-09 13:45:51.250048464 -0500
-@@ -242,7 +242,13 @@
+@@ -242,7 +242,16 @@
esac
CC_quoted="$CC_quoted $arg"
done
+ # user sometimes does CC=<HOST>-gcc so we need to match that to 'gcc'
+ trimedcc=`echo ${CC} | $SED -e "/${host}-//g"`
++ # and sometimes libtool has CC=<HOST>-gcc but user does CC=gcc
++ extendcc=${host}-${CC}
case "$@ " in
+ "gcc "* | " gcc "* | "${host}-gcc "* | " ${host}-gcc "*)
+ tagname=CC
+ break ;;
+ "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*|\
++ "$extendcc "* | " $extendcc "* | "`$echo $extendcc` "* | " `$echo $extendcc` "*|\
" $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
# The compiler in the base compile command matches
# the one in the tagged configuration.