]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* config/ltmain.in (func_mode_link): Use $pic_object as
authorDavid Edelsohn <dje@watson.ibm.com>
Fri, 3 Sep 2004 13:02:33 +0000 (13:02 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 3 Sep 2004 13:02:33 +0000 (13:02 +0000)
$non_pic_object if $non_pic_object=none.
* NEWS: Updated.

ChangeLog
NEWS
config/ltmain.in

index 906f3761d1d0f5ea5484542ba539c01a287ef7d5..791fdacb1c40236e6596ce2361b2c191f2477e54 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-09-03  David Edelsohn  <dje@watson.ibm.com>
+
+       * config/ltmain.in (func_mode_link): Use $pic_object as
+       $non_pic_object if $non_pic_object=none.
+       * NEWS: Updated.
+
 2004-09-03  Gary V. Vaughan  <gary@gnu.org>
 
        * bootstrap: Remember that the ltmain.sh generated by bootstrap
diff --git a/NEWS b/NEWS
index e6ce1a88f8d2da489195462fd96df1c213b7aec5..f92ff5d4ca3bc8434727da24758e9c2dd814be86 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,12 @@
 NEWS - list of user-visible changes between releases of GNU Libtool
 
 New in 1.9d: 2004-??-??; CVS version 1.9c, Libtool team:
+* If non-pic objects were not compiled, and libtool is called in link mode,
+  libtool no longer silently creates an empty archive, but rather falls
+  back to pic objects.
+* libtool uses automake's $(mkdir_p), and can support `make -j' on
+  multi-processor hosts if automake discovered a multithreadable mkdir.  If
+  it still doesn't work for you, install GNU mkdir (in GNU coreutils).
 * Return type, and name parameter of lt_dlloader_remove are no longer
   `const'.
 * Name parameter of lt_dlloader_find is no longer 'const'.
@@ -10,9 +16,6 @@ New in 1.9d: 2004-??-??; CVS version 1.9c, Libtool team:
   types have been exchanged.  See libltdl/slist.c for documentation.
 * libltdl is C89 compatible again.  lt_dlsymbol type removed, and lt_dlsymlist
   structure changed to avoid using C99 flexible arrays.
-* libtool uses automake's $(mkdir_p), and can support `make -j' on
-  multi-processor hosts if automake discovered a multithreadable mkdir.  If
-  it still doesn't work for you, install GNU mkdir (in GNU coreutils).
 * Fixed some memory leaks in libltdl.
 \f
 New in 1.9b: 2004-08-29; CVS version 1.5a, Libtool team:
index 58810f9bd0cb2b7e7adbb90eb234749bec00244a..e22f0d2b0d86e199e0bf5579368674c9135a349c 100644 (file)
@@ -2555,6 +2555,11 @@ func_mode_link ()
                  if test -z "$pic_object" || test "$pic_object" = none ; then
                    arg="$non_pic_object"
                  fi
+               else
+                 # If the PIC object exists, use it instead.
+                 # $xdir was prepended to $pic_object above.
+                 non_pic_object="$pic_object"
+                 non_pic_objects="$non_pic_objects $non_pic_object"
                fi
              else
                # Only an error if not doing a dry-run.
@@ -3063,6 +3068,11 @@ func_mode_link ()
            if test -z "$pic_object" || test "$pic_object" = none ; then
              arg="$non_pic_object"
            fi
+         else
+           # If the PIC object exists, use it instead.
+           # $xdir was prepended to $pic_object above.
+           non_pic_object="$pic_object"
+           non_pic_objects="$non_pic_objects $non_pic_object"
          fi
        else
          # Only an error if not doing a dry-run.