]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Make -Wc,FLAG behave like -Xcompiler FLAG in link mode.
authorPeter Rosin <peda@lysator.liu.se>
Fri, 4 Sep 2009 20:19:36 +0000 (22:19 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Fri, 4 Sep 2009 20:19:36 +0000 (22:19 +0200)
* libltdl/config/ltmain.m4sh (func_mode_link): Remove "-Wc,"
instead of replacing it with "$wl" when linking programs
through the compiler driver, just as is the case when linking
libraries.
* NEWS: Update.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
ChangeLog
NEWS
libltdl/config/ltmain.m4sh

index e38a60892769d0919f3576ced4ce1438c69d93b6..9e5d353b0738a2ea557071450a043319ff91056c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-09-04  Peter Rosin  <peda@lysator.liu.se>
+
+       Make -Wc,FLAG behave like -Xcompiler FLAG in link mode.
+       * libltdl/config/ltmain.m4sh (func_mode_link): Remove "-Wc,"
+       instead of replacing it with "$wl" when linking programs
+       through the compiler driver, just as is the case when linking
+       libraries.
+       * NEWS: Update.
+
 2009-08-23  Lennart Poettering  <lennart@poettering.net>  (tiny change)
 
        Shut up prototype warnings with recent GCC and -Wstrict-prototypes.
diff --git a/NEWS b/NEWS
index 15ed32b8a24fea04d25325cf900965b17c0670d8..d6a35aa54cb473109f9ca122ac4b72cbc5d56245 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -43,6 +43,9 @@ New in 2.2.8 2009-??-??: git version 2.2.7a, Libtool team:
     extraction of convenience archives with a lock.
   - The Libtool macro files do not contain instances of __oline__ any more,
     easing merges for configure scripts that are added to version control.
+  - Fix ancient bug where "-Wc," was turned into "$wl" (typically "-Wl,")
+    when using the compiler driver to link programs. Now "-Wc," is stripped
+    just as it is when linking libraries through the compiler driver.
 
 * Miscellaneous changes:
 
index 9e4cfdb79212bf95ddbc6f925d4872b91813dd19..4633ff21e5e4e9a8be2f58de1c30e80fb8a6b748 100644 (file)
@@ -4299,7 +4299,7 @@ func_mode_link ()
        for flag in $args; do
          IFS="$save_ifs"
           func_quote_for_eval "$flag"
-         arg="$arg $wl$func_quote_for_eval_result"
+         arg="$arg $func_quote_for_eval_result"
          compiler_flags="$compiler_flags $func_quote_for_eval_result"
        done
        IFS="$save_ifs"