From: Peter Rosin Date: Fri, 4 Sep 2009 20:19:36 +0000 (+0200) Subject: Make -Wc,FLAG behave like -Xcompiler FLAG in link mode. X-Git-Tag: v2.2.7b~67 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=c9bbeef468f64064e1d50e39c945df929cbc21d8;p=thirdparty%2Flibtool.git 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. Signed-off-by: Peter Rosin --- diff --git a/ChangeLog b/ChangeLog index e38a60892..9e5d353b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-09-04 Peter Rosin + + 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 (tiny change) Shut up prototype warnings with recent GCC and -Wstrict-prototypes. diff --git a/NEWS b/NEWS index 15ed32b8a..d6a35aa54 100644 --- 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: diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 9e4cfdb79..4633ff21e 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -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"