Fossil SCM
Build system changes to support the Tcl stubs mechanism.
Commit
9d0a4a89d776527104a6b196326847ba8276ae5a
Parent
a0b3507d6c975d9…
5 files changed
+1
+26
-21
+6
-2
+6
-2
+6
-2
+1
| --- Makefile.in | ||
| +++ Makefile.in | ||
| @@ -41,10 +41,11 @@ | ||
| 41 | 41 | LIB = @LDFLAGS@ @EXTRA_LDFLAGS@ @LIBS@ |
| 42 | 42 | TCC += @EXTRA_CFLAGS@ @CPPFLAGS@ @CFLAGS@ -DHAVE_AUTOCONFIG_H |
| 43 | 43 | INSTALLDIR = $(DESTDIR)@prefix@/bin |
| 44 | 44 | USE_SYSTEM_SQLITE = @USE_SYSTEM_SQLITE@ |
| 45 | 45 | FOSSIL_ENABLE_TCL = @FOSSIL_ENABLE_TCL@ |
| 46 | +FOSSIL_ENABLE_TCL_STUBS = @FOSSIL_ENABLE_TCL_STUBS@ | |
| 46 | 47 | |
| 47 | 48 | include $(SRCDIR)/main.mk |
| 48 | 49 | |
| 49 | 50 | distclean: clean |
| 50 | 51 | rm -f autoconfig.h config.log Makefile |
| 51 | 52 |
| --- Makefile.in | |
| +++ Makefile.in | |
| @@ -41,10 +41,11 @@ | |
| 41 | LIB = @LDFLAGS@ @EXTRA_LDFLAGS@ @LIBS@ |
| 42 | TCC += @EXTRA_CFLAGS@ @CPPFLAGS@ @CFLAGS@ -DHAVE_AUTOCONFIG_H |
| 43 | INSTALLDIR = $(DESTDIR)@prefix@/bin |
| 44 | USE_SYSTEM_SQLITE = @USE_SYSTEM_SQLITE@ |
| 45 | FOSSIL_ENABLE_TCL = @FOSSIL_ENABLE_TCL@ |
| 46 | |
| 47 | include $(SRCDIR)/main.mk |
| 48 | |
| 49 | distclean: clean |
| 50 | rm -f autoconfig.h config.log Makefile |
| 51 |
| --- Makefile.in | |
| +++ Makefile.in | |
| @@ -41,10 +41,11 @@ | |
| 41 | LIB = @LDFLAGS@ @EXTRA_LDFLAGS@ @LIBS@ |
| 42 | TCC += @EXTRA_CFLAGS@ @CPPFLAGS@ @CFLAGS@ -DHAVE_AUTOCONFIG_H |
| 43 | INSTALLDIR = $(DESTDIR)@prefix@/bin |
| 44 | USE_SYSTEM_SQLITE = @USE_SYSTEM_SQLITE@ |
| 45 | FOSSIL_ENABLE_TCL = @FOSSIL_ENABLE_TCL@ |
| 46 | FOSSIL_ENABLE_TCL_STUBS = @FOSSIL_ENABLE_TCL_STUBS@ |
| 47 | |
| 48 | include $(SRCDIR)/main.mk |
| 49 | |
| 50 | distclean: clean |
| 51 | rm -f autoconfig.h config.log Makefile |
| 52 |
M
auto.def
+26
-21
| --- auto.def | ||
| +++ auto.def | ||
| @@ -92,35 +92,40 @@ | ||
| 92 | 92 | user-error "zlib not found please install it or specify the location with --with-zlib" |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | set tclpath [opt-val with-tcl] |
| 96 | 96 | if {$tclpath ne ""} { |
| 97 | - # Note parse-tclconfig-sh is in autosetup/local.tcl | |
| 97 | + # Note parse-tclconfig-sh is in autosetup/local.tcl | |
| 98 | 98 | if {$tclpath eq "1"} { |
| 99 | 99 | # Use the system Tcl. Look in some likely places. |
| 100 | 100 | array set tclconfig [parse-tclconfig-sh /usr /usr/local /usr/share /opt/local] |
| 101 | - set msg "on your system" | |
| 102 | - } else { | |
| 101 | + set msg "on your system" | |
| 102 | + } else { | |
| 103 | 103 | array set tclconfig [parse-tclconfig-sh $tclpath] |
| 104 | - set msg "at $tclpath" | |
| 105 | - } | |
| 106 | - if {![info exists tclconfig(TCL_INCLUDE_SPEC)]} { | |
| 107 | - user-error "Cannot find Tcl $msg" | |
| 108 | - } | |
| 109 | - set cflags $tclconfig(TCL_INCLUDE_SPEC) | |
| 110 | - set libs "$tclconfig(TCL_LIB_SPEC) $tclconfig(TCL_LIBS)" | |
| 111 | - cc-with [list -cflags $cflags -libs $libs] { | |
| 112 | - if {![cc-check-functions Tcl_CreateInterp]} { | |
| 113 | - user-error "Cannot find a usable Tcl $msg" | |
| 114 | - } | |
| 115 | - } | |
| 116 | - set version $tclconfig(TCL_VERSION)$tclconfig(TCL_PATCH_LEVEL) | |
| 117 | - msg-result "Found Tcl $version at $tclconfig(TCL_PREFIX)" | |
| 118 | - define-append LIBS $libs | |
| 119 | - define-append EXTRA_CFLAGS $cflags | |
| 120 | - define-append EXTRA_LDFLAGS $tclconfig(TCL_LD_FLAGS) | |
| 121 | - | |
| 104 | + set msg "at $tclpath" | |
| 105 | + } | |
| 106 | + if {![info exists tclconfig(TCL_INCLUDE_SPEC)]} { | |
| 107 | + user-error "Cannot find Tcl $msg" | |
| 108 | + } | |
| 109 | + set tclstubs [opt-val with-tcl-stubs] | |
| 110 | + if {$tclstubs eq "1" && $tclconfig(TCL_SUPPORTS_STUBS)} { | |
| 111 | + set libs "$tclconfig(TCL_STUB_LIB_SPEC)" | |
| 112 | + define FOSSIL_ENABLE_TCL_STUBS | |
| 113 | + } else { | |
| 114 | + set libs "$tclconfig(TCL_LIB_SPEC) $tclconfig(TCL_LIBS)" | |
| 115 | + } | |
| 116 | + set cflags $tclconfig(TCL_INCLUDE_SPEC) | |
| 117 | + cc-with [list -cflags $cflags -libs $libs] { | |
| 118 | + if {![cc-check-functions Tcl_CreateInterp]} { | |
| 119 | + user-error "Cannot find a usable Tcl $msg" | |
| 120 | + } | |
| 121 | + } | |
| 122 | + set version $tclconfig(TCL_VERSION)$tclconfig(TCL_PATCH_LEVEL) | |
| 123 | + msg-result "Found Tcl $version at $tclconfig(TCL_PREFIX)" | |
| 124 | + define-append LIBS $libs | |
| 125 | + define-append EXTRA_CFLAGS $cflags | |
| 126 | + define-append EXTRA_LDFLAGS $tclconfig(TCL_LD_FLAGS) | |
| 122 | 127 | define FOSSIL_ENABLE_TCL |
| 123 | 128 | } |
| 124 | 129 | |
| 125 | 130 | # Helper for openssl checking |
| 126 | 131 | proc check-for-openssl {msg {cflags {}}} { |
| 127 | 132 |
| --- auto.def | |
| +++ auto.def | |
| @@ -92,35 +92,40 @@ | |
| 92 | user-error "zlib not found please install it or specify the location with --with-zlib" |
| 93 | } |
| 94 | |
| 95 | set tclpath [opt-val with-tcl] |
| 96 | if {$tclpath ne ""} { |
| 97 | # Note parse-tclconfig-sh is in autosetup/local.tcl |
| 98 | if {$tclpath eq "1"} { |
| 99 | # Use the system Tcl. Look in some likely places. |
| 100 | array set tclconfig [parse-tclconfig-sh /usr /usr/local /usr/share /opt/local] |
| 101 | set msg "on your system" |
| 102 | } else { |
| 103 | array set tclconfig [parse-tclconfig-sh $tclpath] |
| 104 | set msg "at $tclpath" |
| 105 | } |
| 106 | if {![info exists tclconfig(TCL_INCLUDE_SPEC)]} { |
| 107 | user-error "Cannot find Tcl $msg" |
| 108 | } |
| 109 | set cflags $tclconfig(TCL_INCLUDE_SPEC) |
| 110 | set libs "$tclconfig(TCL_LIB_SPEC) $tclconfig(TCL_LIBS)" |
| 111 | cc-with [list -cflags $cflags -libs $libs] { |
| 112 | if {![cc-check-functions Tcl_CreateInterp]} { |
| 113 | user-error "Cannot find a usable Tcl $msg" |
| 114 | } |
| 115 | } |
| 116 | set version $tclconfig(TCL_VERSION)$tclconfig(TCL_PATCH_LEVEL) |
| 117 | msg-result "Found Tcl $version at $tclconfig(TCL_PREFIX)" |
| 118 | define-append LIBS $libs |
| 119 | define-append EXTRA_CFLAGS $cflags |
| 120 | define-append EXTRA_LDFLAGS $tclconfig(TCL_LD_FLAGS) |
| 121 | |
| 122 | define FOSSIL_ENABLE_TCL |
| 123 | } |
| 124 | |
| 125 | # Helper for openssl checking |
| 126 | proc check-for-openssl {msg {cflags {}}} { |
| 127 |
| --- auto.def | |
| +++ auto.def | |
| @@ -92,35 +92,40 @@ | |
| 92 | user-error "zlib not found please install it or specify the location with --with-zlib" |
| 93 | } |
| 94 | |
| 95 | set tclpath [opt-val with-tcl] |
| 96 | if {$tclpath ne ""} { |
| 97 | # Note parse-tclconfig-sh is in autosetup/local.tcl |
| 98 | if {$tclpath eq "1"} { |
| 99 | # Use the system Tcl. Look in some likely places. |
| 100 | array set tclconfig [parse-tclconfig-sh /usr /usr/local /usr/share /opt/local] |
| 101 | set msg "on your system" |
| 102 | } else { |
| 103 | array set tclconfig [parse-tclconfig-sh $tclpath] |
| 104 | set msg "at $tclpath" |
| 105 | } |
| 106 | if {![info exists tclconfig(TCL_INCLUDE_SPEC)]} { |
| 107 | user-error "Cannot find Tcl $msg" |
| 108 | } |
| 109 | set tclstubs [opt-val with-tcl-stubs] |
| 110 | if {$tclstubs eq "1" && $tclconfig(TCL_SUPPORTS_STUBS)} { |
| 111 | set libs "$tclconfig(TCL_STUB_LIB_SPEC)" |
| 112 | define FOSSIL_ENABLE_TCL_STUBS |
| 113 | } else { |
| 114 | set libs "$tclconfig(TCL_LIB_SPEC) $tclconfig(TCL_LIBS)" |
| 115 | } |
| 116 | set cflags $tclconfig(TCL_INCLUDE_SPEC) |
| 117 | cc-with [list -cflags $cflags -libs $libs] { |
| 118 | if {![cc-check-functions Tcl_CreateInterp]} { |
| 119 | user-error "Cannot find a usable Tcl $msg" |
| 120 | } |
| 121 | } |
| 122 | set version $tclconfig(TCL_VERSION)$tclconfig(TCL_PATCH_LEVEL) |
| 123 | msg-result "Found Tcl $version at $tclconfig(TCL_PREFIX)" |
| 124 | define-append LIBS $libs |
| 125 | define-append EXTRA_CFLAGS $cflags |
| 126 | define-append EXTRA_LDFLAGS $tclconfig(TCL_LD_FLAGS) |
| 127 | define FOSSIL_ENABLE_TCL |
| 128 | } |
| 129 | |
| 130 | # Helper for openssl checking |
| 131 | proc check-for-openssl {msg {cflags {}}} { |
| 132 |
+6
-2
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -476,12 +476,12 @@ | ||
| 476 | 476 | ifdef FOSSIL_ENABLE_TCL |
| 477 | 477 | TCC += -DFOSSIL_ENABLE_TCL=1 |
| 478 | 478 | RCC += -DFOSSIL_ENABLE_TCL=1 |
| 479 | 479 | # Either statically linked or via stubs |
| 480 | 480 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 481 | -TCC += -DUSE_TCL_STUBS | |
| 482 | -RCC += -DUSE_TCL_STUBS | |
| 481 | +TCC += -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS | |
| 482 | +RCC += -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS | |
| 483 | 483 | else |
| 484 | 484 | TCC += -DSTATIC_BUILD |
| 485 | 485 | RCC += -DSTATIC_BUILD |
| 486 | 486 | endif |
| 487 | 487 | endif |
| @@ -515,11 +515,15 @@ | ||
| 515 | 515 | |
| 516 | 516 | #### These libraries MUST appear in the same order as they do for Tcl |
| 517 | 517 | # or linking with it will not work (exact reason unknown). |
| 518 | 518 | # |
| 519 | 519 | ifdef FOSSIL_ENABLE_TCL |
| 520 | +ifdef FOSSIL_ENABLE_TCL_STUBS | |
| 521 | +LIB += -lkernel32 -lws2_32 | |
| 522 | +else | |
| 520 | 523 | LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32 |
| 524 | +endif | |
| 521 | 525 | else |
| 522 | 526 | LIB += -lkernel32 -lws2_32 |
| 523 | 527 | endif |
| 524 | 528 | |
| 525 | 529 | #### Tcl shell for use in running the fossil test suite. This is only |
| 526 | 530 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -476,12 +476,12 @@ | |
| 476 | ifdef FOSSIL_ENABLE_TCL |
| 477 | TCC += -DFOSSIL_ENABLE_TCL=1 |
| 478 | RCC += -DFOSSIL_ENABLE_TCL=1 |
| 479 | # Either statically linked or via stubs |
| 480 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 481 | TCC += -DUSE_TCL_STUBS |
| 482 | RCC += -DUSE_TCL_STUBS |
| 483 | else |
| 484 | TCC += -DSTATIC_BUILD |
| 485 | RCC += -DSTATIC_BUILD |
| 486 | endif |
| 487 | endif |
| @@ -515,11 +515,15 @@ | |
| 515 | |
| 516 | #### These libraries MUST appear in the same order as they do for Tcl |
| 517 | # or linking with it will not work (exact reason unknown). |
| 518 | # |
| 519 | ifdef FOSSIL_ENABLE_TCL |
| 520 | LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32 |
| 521 | else |
| 522 | LIB += -lkernel32 -lws2_32 |
| 523 | endif |
| 524 | |
| 525 | #### Tcl shell for use in running the fossil test suite. This is only |
| 526 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -476,12 +476,12 @@ | |
| 476 | ifdef FOSSIL_ENABLE_TCL |
| 477 | TCC += -DFOSSIL_ENABLE_TCL=1 |
| 478 | RCC += -DFOSSIL_ENABLE_TCL=1 |
| 479 | # Either statically linked or via stubs |
| 480 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 481 | TCC += -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS |
| 482 | RCC += -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS |
| 483 | else |
| 484 | TCC += -DSTATIC_BUILD |
| 485 | RCC += -DSTATIC_BUILD |
| 486 | endif |
| 487 | endif |
| @@ -515,11 +515,15 @@ | |
| 515 | |
| 516 | #### These libraries MUST appear in the same order as they do for Tcl |
| 517 | # or linking with it will not work (exact reason unknown). |
| 518 | # |
| 519 | ifdef FOSSIL_ENABLE_TCL |
| 520 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 521 | LIB += -lkernel32 -lws2_32 |
| 522 | else |
| 523 | LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32 |
| 524 | endif |
| 525 | else |
| 526 | LIB += -lkernel32 -lws2_32 |
| 527 | endif |
| 528 | |
| 529 | #### Tcl shell for use in running the fossil test suite. This is only |
| 530 |
+6
-2
| --- win/Makefile.mingw | ||
| +++ win/Makefile.mingw | ||
| @@ -148,12 +148,12 @@ | ||
| 148 | 148 | ifdef FOSSIL_ENABLE_TCL |
| 149 | 149 | TCC += -DFOSSIL_ENABLE_TCL=1 |
| 150 | 150 | RCC += -DFOSSIL_ENABLE_TCL=1 |
| 151 | 151 | # Either statically linked or via stubs |
| 152 | 152 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 153 | -TCC += -DUSE_TCL_STUBS | |
| 154 | -RCC += -DUSE_TCL_STUBS | |
| 153 | +TCC += -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS | |
| 154 | +RCC += -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS | |
| 155 | 155 | else |
| 156 | 156 | TCC += -DSTATIC_BUILD |
| 157 | 157 | RCC += -DSTATIC_BUILD |
| 158 | 158 | endif |
| 159 | 159 | endif |
| @@ -187,11 +187,15 @@ | ||
| 187 | 187 | |
| 188 | 188 | #### These libraries MUST appear in the same order as they do for Tcl |
| 189 | 189 | # or linking with it will not work (exact reason unknown). |
| 190 | 190 | # |
| 191 | 191 | ifdef FOSSIL_ENABLE_TCL |
| 192 | +ifdef FOSSIL_ENABLE_TCL_STUBS | |
| 193 | +LIB += -lkernel32 -lws2_32 | |
| 194 | +else | |
| 192 | 195 | LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32 |
| 196 | +endif | |
| 193 | 197 | else |
| 194 | 198 | LIB += -lkernel32 -lws2_32 |
| 195 | 199 | endif |
| 196 | 200 | |
| 197 | 201 | #### Tcl shell for use in running the fossil test suite. This is only |
| 198 | 202 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -148,12 +148,12 @@ | |
| 148 | ifdef FOSSIL_ENABLE_TCL |
| 149 | TCC += -DFOSSIL_ENABLE_TCL=1 |
| 150 | RCC += -DFOSSIL_ENABLE_TCL=1 |
| 151 | # Either statically linked or via stubs |
| 152 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 153 | TCC += -DUSE_TCL_STUBS |
| 154 | RCC += -DUSE_TCL_STUBS |
| 155 | else |
| 156 | TCC += -DSTATIC_BUILD |
| 157 | RCC += -DSTATIC_BUILD |
| 158 | endif |
| 159 | endif |
| @@ -187,11 +187,15 @@ | |
| 187 | |
| 188 | #### These libraries MUST appear in the same order as they do for Tcl |
| 189 | # or linking with it will not work (exact reason unknown). |
| 190 | # |
| 191 | ifdef FOSSIL_ENABLE_TCL |
| 192 | LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32 |
| 193 | else |
| 194 | LIB += -lkernel32 -lws2_32 |
| 195 | endif |
| 196 | |
| 197 | #### Tcl shell for use in running the fossil test suite. This is only |
| 198 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -148,12 +148,12 @@ | |
| 148 | ifdef FOSSIL_ENABLE_TCL |
| 149 | TCC += -DFOSSIL_ENABLE_TCL=1 |
| 150 | RCC += -DFOSSIL_ENABLE_TCL=1 |
| 151 | # Either statically linked or via stubs |
| 152 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 153 | TCC += -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS |
| 154 | RCC += -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS |
| 155 | else |
| 156 | TCC += -DSTATIC_BUILD |
| 157 | RCC += -DSTATIC_BUILD |
| 158 | endif |
| 159 | endif |
| @@ -187,11 +187,15 @@ | |
| 187 | |
| 188 | #### These libraries MUST appear in the same order as they do for Tcl |
| 189 | # or linking with it will not work (exact reason unknown). |
| 190 | # |
| 191 | ifdef FOSSIL_ENABLE_TCL |
| 192 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 193 | LIB += -lkernel32 -lws2_32 |
| 194 | else |
| 195 | LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32 |
| 196 | endif |
| 197 | else |
| 198 | LIB += -lkernel32 -lws2_32 |
| 199 | endif |
| 200 | |
| 201 | #### Tcl shell for use in running the fossil test suite. This is only |
| 202 |
+6
-2
| --- win/Makefile.mingw.mistachkin | ||
| +++ win/Makefile.mingw.mistachkin | ||
| @@ -148,12 +148,12 @@ | ||
| 148 | 148 | ifdef FOSSIL_ENABLE_TCL |
| 149 | 149 | TCC += -DFOSSIL_ENABLE_TCL=1 |
| 150 | 150 | RCC += -DFOSSIL_ENABLE_TCL=1 |
| 151 | 151 | # Either statically linked or via stubs |
| 152 | 152 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 153 | -TCC += -DUSE_TCL_STUBS | |
| 154 | -RCC += -DUSE_TCL_STUBS | |
| 153 | +TCC += -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS | |
| 154 | +RCC += -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS | |
| 155 | 155 | else |
| 156 | 156 | TCC += -DSTATIC_BUILD |
| 157 | 157 | RCC += -DSTATIC_BUILD |
| 158 | 158 | endif |
| 159 | 159 | endif |
| @@ -187,11 +187,15 @@ | ||
| 187 | 187 | |
| 188 | 188 | #### These libraries MUST appear in the same order as they do for Tcl |
| 189 | 189 | # or linking with it will not work (exact reason unknown). |
| 190 | 190 | # |
| 191 | 191 | ifdef FOSSIL_ENABLE_TCL |
| 192 | +ifdef FOSSIL_ENABLE_TCL_STUBS | |
| 193 | +LIB += -lkernel32 -lws2_32 | |
| 194 | +else | |
| 192 | 195 | LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32 |
| 196 | +endif | |
| 193 | 197 | else |
| 194 | 198 | LIB += -lkernel32 -lws2_32 |
| 195 | 199 | endif |
| 196 | 200 | |
| 197 | 201 | #### Tcl shell for use in running the fossil test suite. This is only |
| 198 | 202 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -148,12 +148,12 @@ | |
| 148 | ifdef FOSSIL_ENABLE_TCL |
| 149 | TCC += -DFOSSIL_ENABLE_TCL=1 |
| 150 | RCC += -DFOSSIL_ENABLE_TCL=1 |
| 151 | # Either statically linked or via stubs |
| 152 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 153 | TCC += -DUSE_TCL_STUBS |
| 154 | RCC += -DUSE_TCL_STUBS |
| 155 | else |
| 156 | TCC += -DSTATIC_BUILD |
| 157 | RCC += -DSTATIC_BUILD |
| 158 | endif |
| 159 | endif |
| @@ -187,11 +187,15 @@ | |
| 187 | |
| 188 | #### These libraries MUST appear in the same order as they do for Tcl |
| 189 | # or linking with it will not work (exact reason unknown). |
| 190 | # |
| 191 | ifdef FOSSIL_ENABLE_TCL |
| 192 | LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32 |
| 193 | else |
| 194 | LIB += -lkernel32 -lws2_32 |
| 195 | endif |
| 196 | |
| 197 | #### Tcl shell for use in running the fossil test suite. This is only |
| 198 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -148,12 +148,12 @@ | |
| 148 | ifdef FOSSIL_ENABLE_TCL |
| 149 | TCC += -DFOSSIL_ENABLE_TCL=1 |
| 150 | RCC += -DFOSSIL_ENABLE_TCL=1 |
| 151 | # Either statically linked or via stubs |
| 152 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 153 | TCC += -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS |
| 154 | RCC += -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS |
| 155 | else |
| 156 | TCC += -DSTATIC_BUILD |
| 157 | RCC += -DSTATIC_BUILD |
| 158 | endif |
| 159 | endif |
| @@ -187,11 +187,15 @@ | |
| 187 | |
| 188 | #### These libraries MUST appear in the same order as they do for Tcl |
| 189 | # or linking with it will not work (exact reason unknown). |
| 190 | # |
| 191 | ifdef FOSSIL_ENABLE_TCL |
| 192 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 193 | LIB += -lkernel32 -lws2_32 |
| 194 | else |
| 195 | LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32 |
| 196 | endif |
| 197 | else |
| 198 | LIB += -lkernel32 -lws2_32 |
| 199 | endif |
| 200 | |
| 201 | #### Tcl shell for use in running the fossil test suite. This is only |
| 202 |