]> code.delx.au - pulseaudio/commitdiff
build-sys: Use absolute path for map-file while linking
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Thu, 8 Dec 2011 08:47:07 +0000 (14:17 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 13 Dec 2011 03:39:44 +0000 (09:09 +0530)
This makes the link process more robust in some stranger configurations.

configure.ac

index fbc7276ab37ef601d831bb82e4e0b6484884b697..ab39249d9c0e1548a954b3e1fe41eaa03f3fb387 100644 (file)
@@ -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.