aboutsummaryrefslogtreecommitdiff
path: root/auto.def
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2020-11-08 09:31:26 +1000
committerSteve Bennett <steveb@workware.net.au>2020-11-08 10:17:57 +1000
commit4b865fed1ad29c97c1b21757d953886758b22796 (patch)
tree809c9f5f10713cc01d42e45f0269c53559948b5b /auto.def
parent8e1a22bac49a3acb1ee757ca34ed16b27bb7cd17 (diff)
downloadjimtcl-4b865fed1ad29c97c1b21757d953886758b22796.zip
jimtcl-4b865fed1ad29c97c1b21757d953886758b22796.tar.gz
jimtcl-4b865fed1ad29c97c1b21757d953886758b22796.tar.bz2
build: Fix build and tests for out-of-tree build
Loadable modules and tests Fixes #179 Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r--auto.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto.def b/auto.def
index 3c8f272..49990b9 100644
--- a/auto.def
+++ b/auto.def
@@ -558,7 +558,7 @@ foreach mod $extinfo(module-c) {
set obj [file rootname $src].o
lappend objs $obj
lappend lines "\t\$(ECHO)\t\"\tCC\t$obj\""
- lappend lines "\t\$(Q)\$(CC) \$(CFLAGS) \$(SHOBJ_CFLAGS) -c -o $obj $src"
+ lappend lines "\t\$(Q)\$(CC) \$(CFLAGS) \$(SHOBJ_CFLAGS) -c -o $obj \$(srcdir)/$src"
}
lappend lines "\t\$(ECHO)\t\"\tLDSO\t\$@\""
lappend lines "\t\$(Q)\$(CC) \$(CFLAGS) \$(LDFLAGS) \$(SHOBJ_LDFLAGS) -o \$@ $objs \$(SH_LIBJIM) $libs"