]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Pass through -g* so that debugging information is not dropped
authorAndreas Schwab <schwab@linux-m68k.org>
Wed, 22 Aug 2012 01:17:04 +0000 (20:17 -0500)
committerPeter O'Gorman <peter@pogma.com>
Wed, 22 Aug 2012 01:17:04 +0000 (20:17 -0500)
* ltmain.m4sh (func_mode_link): Pass through -g*.

build-aux/ltmain.m4sh

index 48e259b6446cf5b50f142e47931fb648cbb75690..1d71f0e22a4011504e023e25a93e8f2d310be20e 100644 (file)
@@ -5090,11 +5090,11 @@ func_mode_link ()
       # @file                GCC response files
       # -tp=*                Portland pgcc target processor selection
       # --sysroot=*          for sysroot support
-      # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+      # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
       # -stdlib=*            select c++ std lib with clang
       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
-      -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-stdlib=*)
+      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-stdlib=*)
         func_quote_for_eval "$arg"
        arg=$func_quote_for_eval_result
         func_append compile_command " $arg"