Fix: make check in OOT build with absolute path
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 4 Sep 2015 21:31:31 +0000 (17:31 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 4 Sep 2015 21:38:18 +0000 (17:38 -0400)
The previous patch fixed the out of tree build when the configure script
was called with a path relative to the builddir but still failed when
the path was absolute. This works with both.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/ust-elf/Makefile.am
tests/ust-elf/test_ust_elf.in

index 368e427ea39e4f034b1ae109a0faf8f93023370b..92337e769248e60c9a6a526b7099d7c920442380 100644 (file)
@@ -10,5 +10,5 @@ CLEANFILES = $(noinst_SCRIPTS)
 EXTRA_DIST = test_ust_elf.in $(srcdir)/data/**
 
 $(noinst_SCRIPTS): %: %.in
-       sed "s#@TOPSRCDIR@#$(top_srcdir)#g" < $< > $@
+       sed "s#@ABSTOPSRCDIR@#$(abs_top_srcdir)#g" < $< > $@
        chmod +x $@
index 5cfbff695ca2fc5c4aa8662201cc426771238efa..03a995fc0f05eda12aa1363c4b7a467f4b9b0654 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/bash
 
 TEST_DIR=$(dirname $0)
-./${TEST_DIR}/prog $TEST_DIR/@TOPSRCDIR@/tests/ust-elf
+./${TEST_DIR}/prog @ABSTOPSRCDIR@/tests/ust-elf
This page took 0.025095 seconds and 4 git commands to generate.