aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2020-03-22 15:40:09 -0500
committerChih-Min Chao <chihmin.chao@sifive.com>2020-04-05 22:35:15 -0700
commitbc1a3965e96f78d03c860e927f7ffed94d40a9d4 (patch)
tree50424512850ff3becfea7cd72bc977a7ace2834c /configure.ac
parent02ef436177b7d9804da0f4b513df64c6bd699555 (diff)
downloadspike-bc1a3965e96f78d03c860e927f7ffed94d40a9d4.zip
spike-bc1a3965e96f78d03c860e927f7ffed94d40a9d4.tar.gz
spike-bc1a3965e96f78d03c860e927f7ffed94d40a9d4.tar.bz2
Fix hard-coded path to DTC that breaks packaging (#428)
configure.ac included code which detects and inserted a full path to dtc. Unfortunately, when building with a packaging system, this path reflects the path under a staged building area. Also the inclusion of a full path breaks the use case where someone keeps two versions of dtc on their computer and sets their PATH to switch between them. spike will continue to use the one on their PATH when it was built rather than the intended one. Co-authored-by: Joel Sherrill <joel@rtems.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 49e2e0d..a414bb6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,7 +58,7 @@ AC_CHECK_TOOL([AR],[ar])
AC_CHECK_TOOL([RANLIB],[ranlib])
AC_PATH_PROG([DTC],[dtc],[no])
AS_IF([test x"$DTC" == xno],AC_MSG_ERROR([device-tree-compiler not found]))
-AC_DEFINE_UNQUOTED(DTC, ["$DTC"], [Path to the device-tree-compiler])
+AC_DEFINE_UNQUOTED(DTC, ["dtc"], [Executable name of device-tree-compiler])
AC_C_BIGENDIAN