]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Use linker_flags not compiler_flags with $LD.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 4 Apr 2010 07:32:56 +0000 (09:32 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 4 Apr 2010 07:40:17 +0000 (09:40 +0200)
* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [linux]
<archive_cmds, archive_expsym_cmds>: With xlf and bgxlf
compilers, when linking with $LD, use $linker_flags not
$compiler_flags.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/m4/libtool.m4

index 0d94edf1385462a539b857c06852316997f3a6f3..4e274ea7caf7935715db29ae134d400e1a7ee78c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-04-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Use linker_flags not compiler_flags with $LD.
+       * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [linux]
+       <archive_cmds, archive_expsym_cmds>: With xlf and bgxlf
+       compilers, when linking with $LD, use $linker_flags not
+       $compiler_flags.
+
 2010-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Add FAQ, and FAQ entry for flags stripped at library link time.
index d74038f8353c74245cf6e097f48f9b11b15d98c5..5e0bba7966bc17d899cd0b0a7831011b4c01a2e4 100644 (file)
@@ -4502,12 +4502,12 @@ _LT_EOF
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
-         _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
+         _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
          if test "x$supports_anon_versioning" = xyes; then
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
              echo "local: *; };" >> $output_objdir/$libname.ver~
-             $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
+             $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
          fi
          ;;
        esac