From c55648ce6c10f60b942efff8d1c503793ef77f07 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Thu, 8 Dec 2011 14:17:07 +0530 Subject: [PATCH] build-sys: Use absolute path for map-file while linking This makes the link process more robust in some stranger configurations. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index fbc7276a..ab39249d 100644 --- a/configure.ac +++ b/configure.ac @@ -168,8 +168,8 @@ AS_CASE([" $CFLAGS "], [*" -O0 "*], [], [AX_APPEND_FLAG(["-DFASTPATH"], [CPPFLAG # Check whether the linker supports the -version-script option. # The Make variable $(srcdir) needs to be in the LDFLAGS in that form, # so that it is expanded the right way in every subdir. -AX_CHECK_LINK_FLAG(["-Wl,-version-script=${srcdir}/src/map-file"], - [VERSIONING_LDFLAGS='-Wl,-version-script=$(srcdir)/map-file']) +AX_CHECK_LINK_FLAG(["-Wl,-version-script=${abs_top_srcdir}/src/map-file"], + [VERSIONING_LDFLAGS='-Wl,-version-script=$(abs_top_srcdir)/map-file']) AC_SUBST([VERSIONING_LDFLAGS]) # Use immediate (now) bindings; avoids the funky re-call in itself. -- 2.39.2