]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4: Use cc rather than ld to create
authorAlbert Chin-A-Young <china@thewrittenword.com>
Mon, 19 Apr 2004 13:31:28 +0000 (13:31 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 19 Apr 2004 13:31:28 +0000 (13:31 +0000)
a shared library on Tru64 UNIX.

ChangeLog
m4/libtool.m4

index 5d31590a63dc92aadfbcfd0a34dc8c26a8d9818b..b20d47eb4ef465dee77d4ea1906183c2ad621b6d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-04-19  Albert Chin-A-Young  <china@thewrittenword.com>
 
+       * m4/libtool.m4: Use cc rather than ld to created
+       a shared library on Tru64 UNIX.
+
        * m4/libtool.m4: Use cc rather than ld to created
        a shared library on IRIX.
 
index eaaa3f04e26456157a21382c7549051fc3e63b95..5fec299784399336e81698eb0f58b9cdf2354ed4 100644 (file)
@@ -4020,8 +4020,9 @@ _LT_EOF
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
       else
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
-       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
       fi
+      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)='no'
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
       ;;
@@ -4033,13 +4034,14 @@ _LT_EOF
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
       else
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
-       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
-       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
+       $CC -shared${allow_undefined_flag} -input $lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
        # Both c and cxx compiler support -rpath directly
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
       fi
+      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)='no'
       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
       ;;