/[libtool]/libtool/libtool.m4
ViewVC logotype

Diff of /libtool/libtool.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.314.2.67 by rwild, Thu Feb 3 15:01:20 2005 UTC revision 1.314.2.68 by pogma, Fri Feb 25 14:14:20 2005 UTC
# Line 3178  case $host_os in Line 3178  case $host_os in
3178    
3179          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3180          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3181            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3182          ;;          ;;
3183        cxx)        cxx)
3184          # Compaq C++          # Compaq C++
# Line 5137  ifelse([$1],[CXX],[ Line 5138  ifelse([$1],[CXX],[
5138    # rely on this symbol name, it's probably fine to never include it in    # rely on this symbol name, it's probably fine to never include it in
5139    # preloaded symbol tables.    # preloaded symbol tables.
5140    extract_expsyms_cmds=    extract_expsyms_cmds=
5141      # Just being paranoid about ensuring that cc_basename is set.
5142      cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5143    case $host_os in    case $host_os in
5144    cygwin* | mingw* | pw32*)    cygwin* | mingw* | pw32*)
5145      # FIXME: the MSVC++ port hasn't been tested in a loooong time      # FIXME: the MSVC++ port hasn't been tested in a loooong time
# Line 5156  ifelse([$1],[CXX],[ Line 5158  ifelse([$1],[CXX],[
5158    if test "$with_gnu_ld" = yes; then    if test "$with_gnu_ld" = yes; then
5159      # If archive_cmds runs LD, not CC, wlarc should be empty      # If archive_cmds runs LD, not CC, wlarc should be empty
5160      wlarc='${wl}'      wlarc='${wl}'
5161        
5162        # Set some defaults for GNU ld with shared library support. These
5163        # are reset later if shared libraries are not supported. Putting them
5164        # here allows them to be overridden if necessary.
5165        runpath_var=LD_RUN_PATH
5166        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5167        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5168        # ancient GNU ld didn't support --whole-archive et. al.
5169        if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5170            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5171          else
5172            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5173        fi
5174        supports_anon_versioning=no
5175        case `$LD -v 2>/dev/null` in
5176          *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5177          *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5178          *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5179          *\ 2.11.*) ;; # other 2.11 versions
5180          *) supports_anon_versioning=yes ;;
5181        esac
5182        
5183      # See if GNU ld supports shared libraries.      # See if GNU ld supports shared libraries.
5184      case $host_os in      case $host_os in
5185      aix3* | aix4* | aix5*)      aix3* | aix4* | aix5*)
# Line 5266  EOF Line 5289  EOF
5289    linux*)    linux*)
5290      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5291        tmp_addflag=        tmp_addflag=
5292        case $CC,$host_cpu in        case $cc_basename,$host_cpu in
5293          pgcc*)                            # Portland Group C compiler
5294            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5295            ;;
5296        pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers        pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
5297            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5298          tmp_addflag=' -fpic' ;;          tmp_addflag=' -fpic' ;;
5299        ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64        ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
5300          tmp_addflag=' -i_dynamic' ;;          tmp_addflag=' -i_dynamic' ;;
# Line 5277  EOF Line 5304  EOF
5304          tmp_addflag=' -nofor_main' ;;          tmp_addflag=' -nofor_main' ;;
5305        esac        esac
5306        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5307        supports_anon_versioning=no  
       case `$LD -v 2>/dev/null` in  
         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11  
         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...  
         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...  
         *\ 2.11.*) ;; # other 2.11 versions  
         *) supports_anon_versioning=yes ;;  
       esac  
5308        if test $supports_anon_versioning = yes; then        if test $supports_anon_versioning = yes; then
5309          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5310  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
# Line 5308  $echo "local: *; };" >> $output_objdir/$ Line 5328  $echo "local: *; };" >> $output_objdir/$
5328        ;;        ;;
5329      esac      esac
5330    
5331      if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then      if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5332        runpath_var=LD_RUN_PATH        runpath_var=
5333        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5334        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5335        # ancient GNU ld didn't support --whole-archive et. al.        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then  
         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'  
       else  
         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=  
       fi  
5336      fi      fi
5337    else    else
5338      # PORTME fill in a description of your system's linker (not GNU ld)      # PORTME fill in a description of your system's linker (not GNU ld)

Legend:
Removed from v.1.314.2.67  
changed lines
  Added in v.1.314.2.68

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26