From 519bf919cc98013db7f801fe9697421154db9b38 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sun, 4 Apr 2010 09:32:56 +0200 Subject: [PATCH] Use linker_flags not compiler_flags with $LD. * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [linux] : With xlf and bgxlf compilers, when linking with $LD, use $linker_flags not $compiler_flags. Signed-off-by: Ralf Wildenhues --- ChangeLog | 8 ++++++++ libltdl/m4/libtool.m4 | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0d94edf13..4e274ea7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-04-04 Ralf Wildenhues + + Use linker_flags not compiler_flags with $LD. + * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [linux] + : With xlf and bgxlf + compilers, when linking with $LD, use $linker_flags not + $compiler_flags. + 2010-03-31 Ralf Wildenhues Add FAQ, and FAQ entry for flags stripped at library link time. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index d74038f83..5e0bba796 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -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 -- 2.47.2