aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2019-11-14 09:40:30 +1000
committerSteve Bennett <steveb@workware.net.au>2019-11-14 09:41:20 +1000
commitc761d15a0a9e44e965445f61f748ef5a123696b4 (patch)
treebff1b7b98862efa29dfb27bd2e0924b0c5afb574
parent76ddbec17c6084ab3333e4d5fa177241af1a91bb (diff)
downloadjimtcl-c761d15a0a9e44e965445f61f748ef5a123696b4.zip
jimtcl-c761d15a0a9e44e965445f61f748ef5a123696b4.tar.gz
jimtcl-c761d15a0a9e44e965445f61f748ef5a123696b4.tar.bz2
build: Fix out-of-tree build with json ext
If building out-of-tree, the jsmn/ directory may not exist. So create it during configure Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r--auto.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/auto.def b/auto.def
index 893c93a..615f157 100644
--- a/auto.def
+++ b/auto.def
@@ -468,6 +468,8 @@ if {$jimregexp || [opt-bool jim-regexp]} {
foreach mod $extinfo(static-c) {
if {[dict exists $extdb info $mod extrasrcs]} {
foreach src [dict get $extdb info $mod extrasrcs] {
+ # In case we are building out-of-tree and $src is in a subdir
+ file mkdir [file dirname $src]
lappend extra_objs {*}[file rootname $src].o
}
}