aboutsummaryrefslogtreecommitdiff
path: root/auto.def
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2022-02-23 12:14:53 +1000
committerSteve Bennett <steveb@workware.net.au>2022-02-23 12:26:29 +1000
commit043325531af41ba102ff79ea4e251dfc201e287b (patch)
tree57e385d082ecf9489c6aca038329413485c285c9 /auto.def
parent53300d38fc16d202c0f85b424a0fd357e67013a7 (diff)
downloadjimtcl-043325531af41ba102ff79ea4e251dfc201e287b.zip
jimtcl-043325531af41ba102ff79ea4e251dfc201e287b.tar.gz
jimtcl-043325531af41ba102ff79ea4e251dfc201e287b.tar.bz2
build: on windows, need --shared for build-jim-ext to work
So don't build it unless --shared is specified Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r--auto.def17
1 files changed, 13 insertions, 4 deletions
diff --git a/auto.def b/auto.def
index 5a66c7e..8b797e4 100644
--- a/auto.def
+++ b/auto.def
@@ -497,12 +497,19 @@ if {$withinfo(without) eq "default"} {
# Now go check everything - see autosetup/local.tcl
array set extinfo [check-extensions [opt-bool allextmod]]
+set buildjimext 1
+
# Now special checks
if {[have-feature windows]} {
lappend extra_objs jim-win32compat.o
- if {[llength $extinfo(module-c)] && [get-define JIM_STATICLIB]} {
- user-error "cygwin/mingw require --shared for dynamic modules"
+ if {[get-define JIM_STATICLIB]} {
+ if {[llength $extinfo(module-c)]} {
+ user-error "cygwin/mingw require --shared for dynamic modules"
+ } else {
+ user-notice "Building static library, so build-jim-ext will not work on cygwin/mingw"
+ set buildjimext 0
+ }
}
}
if {[have-feature termios.h]} {
@@ -600,10 +607,12 @@ make-config-header jimautoconf.h -auto {jim_ext_* TCL_PLATFORM_* TCL_LIBRARY USE
make-template Makefile.in
make-template tests/Makefile.in
make-template examples.api/Makefile.in
-make-template build-jim-ext.in
+if {$buildjimext} {
+ make-template build-jim-ext.in
+ catch {exec chmod +x build-jim-ext}
+}
make-template jimtcl.pc.in
-catch {exec chmod +x build-jim-ext}
if {[get-define SIZEOF_TIME_T] <= 4} {
set note ""