source: scripts/untested/autotools/patches/libtool-1.5-filter-host-tags.patch @ d1afb9e

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since d1afb9e was d1afb9e, checked in by Jim Gifford <clfs@…>, 18 years ago

r587@server (orig r585): ryan | 2005-08-05 21:51:35 -0700
Add a sane autotools build to the mix.
Blatantly stolen from gentoo...



  • Property mode set to 100644
File size: 1.1 KB
  • libtool-1.5.10/ltmain.in

    Make the infer tag logic a bit more magical since a lot of old packages still 
    exist which utilize this functionality.
    
    http://bugs.gentoo.org/show_bug.cgi?id=77921
    
     
    242242            esac
    243243            CC_quoted="$CC_quoted $arg"
    244244          done
     245            # user sometimes does CC=<HOST>-gcc so we need to match that to 'gcc'
     246            trimedcc=`echo ${CC} | $SED -e "s/${host}-//g"`
     247            # and sometimes libtool has CC=<HOST>-gcc but user does CC=gcc
     248            extendcc=${host}-${CC}
    245249            case "$@ " in
     250              "cc "* | " cc "* | "${host}-cc "* | " ${host}-cc "*|\
     251              "gcc "* | " gcc "* | "${host}-gcc "* | " ${host}-gcc "*)
     252              tagname=CC
     253              break ;;
     254              "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*|\
     255              "$extendcc "* | " $extendcc "* | "`$echo $extendcc` "* | " `$echo $extendcc` "*|\
    246256              " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
    247257              # The compiler in the base compile command matches
    248258              # the one in the tagged configuration.
Note: See TracBrowser for help on using the repository browser.