Use -gline-tables-only instead of -g1 on clang.

This commit is contained in:
Jonathan G Rennison
2016-09-08 19:38:13 +01:00
parent f7774415f2
commit c59509c2aa

View File

@@ -1719,7 +1719,11 @@ EOL
if [ -n "$LIBBFD_LIBS" -o -n "$HAVE_GDB_DBG" ]; then
if [ $enable_debug -lt 1 ] && [ "$with_bfd_extra_debug" = "1" ]; then
CFLAGS="$CFLAGS -g1"
if [ -n "`basename "$cc_host" | grep "clang" 2>/dev/null`" ]; then
CFLAGS="$CFLAGS -gline-tables-only"
else
CFLAGS="$CFLAGS -g1"
fi
fi
fi