]> git.puffer.fish Git - matthieu/frr.git/commitdiff
build: stick `-g` into LDFLAGS
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 31 Mar 2022 15:35:32 +0000 (17:35 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 31 Mar 2022 15:35:32 +0000 (17:35 +0200)
Without `-g` in LDFLAGS we won't get debug info even if it's enabled in
CFLAGS.  Since we're controlling debug info through CFLAGS, there's no
harm in always having `-g` in LDFLAGS.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
configure.ac

index 170d16ca6a823f8dd37e69b3d736d99392019d46..c636fade70aca1584a0cb87137a87d5208ac5264 100644 (file)
@@ -325,6 +325,9 @@ else
    fi
 fi
 
+dnl just stick -g into LDFLAGS, if we don't have it in CFLAGS it won't do much
+LDFLAGS="$LDFLAGS -g"
+
 AM_CONDITIONAL([DEV_BUILD], [test "$enable_dev_build" = "yes"])
 
 dnl always want these CFLAGS