From 312845d704d76a7f43fde2b3fb31cfd48c387f6c Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Fri, 4 Dec 1998 21:43:21 +0000 Subject: [PATCH] * ltconfig.in (solaris): do not use $CC for linking if GNU ld is not available --- ChangeLog | 5 +++++ ltconfig.in | 10 ++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4c2c19678..1eaafdcb3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1998-12-04 Alexandre Oliva + + * ltconfig.in (solaris): do not use $CC for linking if GNU ld is + not available + 1998-12-04 Manfred Weichel * ltconfig.in: Port to SCO UnixWare 7.x. diff --git a/ltconfig.in b/ltconfig.in index bd540c4ce..69b79f963 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1278,13 +1278,11 @@ DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) solaris*) no_undefined_flag=' -z text' - 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' - archive_sym_cmds='$echo "{ global:" > $lib.exp~sed $export_symbols -e "s/.*/\1;/" >> $lib.exp~$echo "local: * }" > $lib.exp~ + # $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' + archive_sym_cmds='$echo "{ global:" > $lib.exp~sed $export_symbols -e "s/.*/\1;/" >> $lib.exp~$echo "local: * }" > $lib.exp~ $LD -G${allow_undefined_flag} -M $export_symbols -h $soname -o $lib$libobjs$deplibs~$rm $lib.exp' - fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no -- 2.47.2