diff options
author | Mark Mitchell <mark@codesourcery.com> | 2001-06-04 19:33:03 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2001-06-04 19:33:03 +0000 |
commit | 066bd40d6aa0dea3f8ea3d82c932b09a3591f48f (patch) | |
tree | 547b5baa80e434d991e72be96f508ed887197ca0 | |
parent | fdf1b60d2b57031da4af9856d0d635bede588bcd (diff) | |
download | gcc-066bd40d6aa0dea3f8ea3d82c932b09a3591f48f.zip gcc-066bd40d6aa0dea3f8ea3d82c932b09a3591f48f.tar.gz gcc-066bd40d6aa0dea3f8ea3d82c932b09a3591f48f.tar.bz2 |
ltcf-c.sh (archive_cmds, [...]): Use `gcc -shared' to build a shared library.
* ltcf-c.sh (archive_cmds, archive_expsym_cmds) [solaris,
with_gcc]: Use `gcc -shared' to build a shared library.
From-SVN: r42874
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ltcf-c.sh | 14 |
2 files changed, 14 insertions, 5 deletions
@@ -1,3 +1,8 @@ +Mon Jun 4 16:32:53 2001 Mark Mitchell <mark@codesourcery.com> + + * ltcf-c.sh (archive_cmds, archive_expsym_cmds) [solaris, + with_gcc]: Use `gcc -shared' to build a shared library. + Mon Jun 4 16:24:43 2001 John David Anglin <dave@hiauly1.hia.nrc.ca> * ltcf-c.sh (archive_cmd) [hpux, with_gcc]: Use gcc to link shared @@ -513,11 +513,15 @@ else solaris*) no_undefined_flag=' -z defs' - # $CC -shared without GNU ld will not create a library from C++ - # object files and a static libstdc++, better avoid it by now - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + if test "$with_gcc" = yes; then + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in |