From fde93fca909a48532c8159bac5f4e249a19b4df2 Mon Sep 17 00:00:00 2001 From: Diego Santa Cruz Date: Wed, 20 Sep 2017 10:54:02 +0200 Subject: [PATCH] configure.ac: fix linker version script detection The detection of linker's support for version scripts fails when building outside the source tree due to missing source path to the linker script. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index fd6d7db3..791d32e0 100644 --- a/configure.ac +++ b/configure.ac @@ -146,7 +146,7 @@ AX_CHECK_COMPILE_FLAG([-Wunused-result], [WARNING_CFLAGS="$WARNING_CFLAGS -Wunus AC_SUBST([WARNING_CFLAGS]) -AX_CHECK_LINK_FLAG([-Wl,--version-script=./libcoap-${LIBCOAP_API_VERSION}.map], +AX_CHECK_LINK_FLAG([-Wl,--version-script=${srcdir}/libcoap-${LIBCOAP_API_VERSION}.map], [libcoap_SYMBOLS="-Wl,--version-script=\$(srcdir)/libcoap-\$(LIBCOAP_API_VERSION).map"], [libcoap_SYMBOLS="-export-symbols \$(srcdir)/libcoap-\$(LIBCOAP_API_VERSION).sym"])