+1998-11-21 Alexandre Oliva <oliva@dcc.unicamp.br>
+
+ * ltconfig.in (archive_cmds, osf3, osf4, solaris, sunos4): create
+ libraries with gcc -shared if using gcc without GNU ld.
+
+ * ltconfig.in: replaced occurrences of solaris2 with solaris, to
+ prepare for Solaris 7
+
1998-11-19 Alexandre Oliva <oliva@dcc.unicamp.br>
* mdemo/Makefile.am (hell_debug_LDFLAGS): -dlpreopen -> -dlopen
special_shlib_compile_flags='-belf'
;;
- solaris2*)
+ solaris*)
pic_flag='-KPIC'
link_static_flag='-Bstatic'
wl='-Wl,'
;;
osf3* | osf4*)
- allow_undefined_flag=' -expect_unresolved \*'
- archive_cmds='$LD -shared${allow_undefined_flag} -o $lib -soname $soname -set_version $verstring$libobjs$deplibs'
+ if test "$with_gcc" = yes; then
+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds='$CC -shared${allow_undefined_flag} -o $lib ${wl}-soname ${wl}$soname ${wl}-set_version ${wl}$verstring$libobjs$deplibs'
+ else
+ allow_undefined_flag=' -expect_unresolved \*'
+ archive_cmds='$LD -shared${allow_undefined_flag} -o $lib -soname $soname -set_version $verstring$libobjs$deplibs'
+ fi
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
hardcode_direct=yes
;;
- solaris2*)
+ solaris*)
no_undefined_flag=' -z text'
- archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib$libobjs$deplibs'
+ if test "$with_gcc" = yes; then
+ archive_cmds='$CC -shared ${wl}-h $wl$soname -o $lib$libobjs$deplibs'
+ else
+ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib$libobjs$deplibs'
+ fi
hardcode_libdir_flag_spec='-R$libdir'
hardcode_shlibpath_var=no
;;
sunos4*)
- archive_cmds='$LD -assert pure-text -Bstatic -o $lib$libobjs$deplibs'
+ # Why do we need -Bstatic? To avoid inter-library dependencies, maybe...
+ if test "$with_gcc" = yes; then
+ archive_cmds='$CC -shared ${wl}-Bstatic -o $lib$libobjs$deplibs'
+ else
+ archive_cmds='$LD -assert pure-text -Bstatic -o $lib$libobjs$deplibs'
+ fi
hardcode_libdir_flag_spec='-L$libdir'
hardcode_direct=yes
hardcode_minus_L=yes
# Cannot use undefined symbols on IRIX because inlined functions mess us up.
symcode='[BCDEGRST]'
;;
-solaris2*)
+solaris*)
symcode='[BDTU]'
;;
esac
shlibpath_var=LD_LIBRARY_PATH
;;
-solaris2*)
+solaris*)
version_type=linux
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
soname_spec='${libname}${release}.so$major'