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.
This commit is contained in:
Diego Santa Cruz committed 2017-09-20 10:54:02 +02:00
1 parent 9b12571804
commit fde93fca90
1 file changed
+1 -1
+1 -1
View File
@@ -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"])