diff options
author | Steve Bennett <steveb@workware.net.au> | 2022-02-23 12:14:53 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2022-02-23 12:26:29 +1000 |
commit | 043325531af41ba102ff79ea4e251dfc201e287b (patch) | |
tree | 57e385d082ecf9489c6aca038329413485c285c9 /auto.def | |
parent | 53300d38fc16d202c0f85b424a0fd357e67013a7 (diff) | |
download | jimtcl-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.def | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -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 "" |