Skip to content

Commit 3cfb554

Browse files
committed
ensure -ldl is passed only once
1 parent fcf7e37 commit 3cfb554

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

configure

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2989,9 +2989,10 @@ AC_HEADER_MAJOR
29892989
AC_CHECK_HEADERS([execinfo.h link.h dlfcn.h], [
29902990
AC_CHECK_FUNCS([backtrace dladdr1], [
29912991
# dladdr1 requires -ldl
2992-
AS_VAR_APPEND([LDFLAGS], [" -ldl"])
2992+
ac_cv_require_ldl=yes
29932993
])
29942994
])
2995+
AS_VAR_IF([ac_cv_require_ldl], [yes], [AS_VAR_APPEND([LDFLAGS], [" -ldl"])])
29952996

29962997
# bluetooth/bluetooth.h has been known to not compile with -std=c99.
29972998
# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294

0 commit comments

Comments
 (0)