summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-03-31 17:35:32 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2022-03-31 17:35:32 +0200
commitbaad07c59d069eacd0698fd8d252dd0ad5a2994f (patch)
treeaa3a71251e32076bc698c897707e7e72de8284ab /configure.ac
parentf979f3fd21894b663e489bdacf083547bdee3467 (diff)
build: stick `-g` into LDFLAGS
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>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 170d16ca6a..c636fade70 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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