make/autoconf/flags-cflags.m4
changeset 53837 b3f6ffbedd68
parent 53643 1126811a5124
child 54490 bf07e140c49c
--- a/make/autoconf/flags-cflags.m4	Tue Feb 19 19:27:08 2019 -0800
+++ b/make/autoconf/flags-cflags.m4	Tue Feb 19 09:02:28 2019 +0100
@@ -121,7 +121,11 @@
     # -g0 enables debug symbols without disabling inlining.
     CFLAGS_DEBUG_SYMBOLS="-g0 -xs"
   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
-    CFLAGS_DEBUG_SYMBOLS="-g"
+    if test "x$XLC_USES_CLANG" = xtrue; then
+      CFLAGS_DEBUG_SYMBOLS="-g1"
+    else
+      CFLAGS_DEBUG_SYMBOLS="-g"
+    fi
   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
     CFLAGS_DEBUG_SYMBOLS="-Z7 -d2Zi+"
   fi