]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (wlarc): set to either '${wl}' or an empty string,
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 17 Jan 1999 09:18:54 +0000 (09:18 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sun, 17 Jan 1999 09:18:54 +0000 (09:18 +0000)
  depending on whether archive_cmds runs CC or LD
(gnu_ld=yes, whole_archive_flag_spec): "$wlarc" instead of '${wl}'

ChangeLog
ltconfig.in

index 0ce9c18617d2ace1b1e894ed903da089eb96ced2..a7258dc4b131d7c09cb18132133de5ac0e6e3159 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 1999-01-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltconfig.in (wlarc): set to either '${wl}' or an empty string,
+       depending on whether archive_cmds runs CC or LD
+       (gnu_ld=yes, whole_archive_flag_spec): "$wlarc" instead of '${wl}'
+
        * mdemo/Makefile.am (../libltdl/libltdlc.la): depend on
        ../libtool, because ../libltdl/libtool depends on it
        (mdemo_debug_*): copy from mdemo_*, adding -static to LDFLAGS
index f9160ec8ac6f08d1c4e86277ebd9579a006620c0..3f5ab925026981aaa33fb4c53ff1fbf2552ec6bc 100755 (executable)
@@ -1019,6 +1019,8 @@ esac
 
 ld_shlibs=yes
 if test "$with_gnu_ld" = yes; then
+  # If archive_cmds runs LD, not CC, wlarc should be empty
+  wlarc='${wl}'
 
   # See if GNU ld supports shared libraries.
   case "$host_os" in
@@ -1030,6 +1032,7 @@ if test "$with_gnu_ld" = yes; then
 
   sunos4*)
     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs'
+    wlarc=
     hardcode_direct=yes
     hardcode_minus_L=yes
     hardcode_shlibpath_var=no
@@ -1104,11 +1107,11 @@ if test "$with_gnu_ld" = yes; then
     ;;
   esac
 
-  if test "$ld_shlibs" = yes && test "$with_gnu_ld" = yes; then
+  if test "$ld_shlibs" = yes; then
     runpath_var=LD_RUN_PATH
     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
     export_dynamic_flag_spec='${wl}--export-dynamic'
-    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+    whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   fi
 else
   # PORTME fill in a description of your system's linker (not GNU ld)