]> 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)
committerGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 14:05:15 +0000 (21:05 +0700)
* ltmain.m4sh (func_mode_link): Pass through -g*.

build-aux/ltmain.m4sh

index 77a0b5d13f9a414a1cac43813a500395f1f584ec..70bb861fd57e40976c16e9886f6f18d9df76a161 100644 (file)
@@ -5092,11 +5092,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"