summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-11-05 16:59:22 +0000
committerMike Frysinger <vapier@gentoo.org>2004-11-05 16:59:22 +0000
commit3df8ae614452da60abdab489f5a97f6befb1c94b (patch)
treea7f1ab5a677a8a37b829ba9549be8209ac176cfa /sys-devel
parentAdded version strings to cjk fonts. (Manifest recommit) (diff)
downloadgentoo-2-3df8ae614452da60abdab489f5a97f6befb1c94b.tar.gz
gentoo-2-3df8ae614452da60abdab489f5a97f6befb1c94b.tar.bz2
gentoo-2-3df8ae614452da60abdab489f5a97f6befb1c94b.zip
update patch to handle CC tag guessing
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/libtool/files/1.5.2/libtool-1.5-filter-host-tags.patch6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys-devel/libtool/files/1.5.2/libtool-1.5-filter-host-tags.patch b/sys-devel/libtool/files/1.5.2/libtool-1.5-filter-host-tags.patch
index 4db84bb45fe5..82620fbadea3 100644
--- a/sys-devel/libtool/files/1.5.2/libtool-1.5-filter-host-tags.patch
+++ b/sys-devel/libtool/files/1.5.2/libtool-1.5-filter-host-tags.patch
@@ -1,19 +1,20 @@
--- libtool-1.5.2/ltmain.in.orig 2004-11-04 04:20:50.608823576 +0000
+++ libtool-1.5.2/ltmain.in 2004-11-04 04:23:25.151329544 +0000
-@@ -560,8 +560,11 @@
+@@ -560,8 +560,12 @@
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
# Evaluate the configuration.
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
+ # user sometimes does CC=<HOST>-gcc so we need to match that to 'gcc'
+ trimedcc="${CC/${host}-}"
case "$base_compile " in
++ "gcc "* | " gcc "*) tagname=CC ; break ;;
- "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
+ "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*|\
+ "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*)
# The compiler in the base compile command matches
# the one in the tagged configuration.
# Assume this is the tagged configuration we want.
-@@ -947,8 +950,11 @@
+@@ -947,8 +950,12 @@
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
# Evaluate the configuration.
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
@@ -22,6 +23,7 @@
+ # user sometimes does CC=<HOST>-gcc so we need to match that to 'gcc'
+ trimedcc="${CC/${host}-}"
+ case "$base_compile " in
++ "gcc "* | " gcc "*) tagname=CC ; break ;;
+ "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*|\
+ "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*)
# The compiler in $compile_command matches