libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Use cc to create shared libraries on Tru64 UNIX


From: Albert Chin
Subject: Use cc to create shared libraries on Tru64 UNIX
Date: Sat, 17 Apr 2004 11:32:03 -0500
User-agent: Mutt/1.5.6i

Against HEAD.

-- 
albert chin (address@hidden)

-- snip snip
2004-04-16  Albert Chin-A-Young  <address@hidden>

        * m4/libtool.m4: Use cc rather than ld to create a shared
        library on Tru64 UNIX.

Index: m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v
retrieving revision 1.62
diff -u -3 -p -r1.62 libtool.m4
--- m4/libtool.m4       15 Apr 2004 17:05:26 -0000      1.62
+++ m4/libtool.m4       16 Apr 2004 16:31:00 -0000
@@ -4021,13 +4038,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} ${wl}-input ${wl}$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)=:
       ;;
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]