Skip to content

Commit f200b0a

Browse files
author
jan.nijtmans
committed
TEA update
1 parent a8dad75 commit f200b0a

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

configure

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2468,7 +2468,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
24682468

24692469

24702470

2471-
24722471
#--------------------------------------------------------------------
24732472
# Call TEA_INIT as the first TEA_ macro to set up initial vars.
24742473
# This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
@@ -6538,7 +6537,7 @@ fi
65386537
fi
65396538
case "x`echo \${VisualStudioVersion}`" in
65406539
x1[4-9]*)
6541-
lflags="${lflags} -nodefaultlib:libucrt.lib"
6540+
lflags="${lflags} -nodefaultlib:ucrt.lib"
65426541

65436542
vars="ucrt.lib"
65446543
for i in $vars; do
@@ -6945,7 +6944,7 @@ fi
69456944
SHLIB_LD='${CC} -shared'
69466945
SHLIB_SUFFIX=".dll"
69476946
if test "${TEA_PLATFORM}" = "unix" -a "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
6948-
SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$(patsubst cyg%.dll,lib%.dll.a,\$@)"
6947+
SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$(patsubst cyg%.dll,lib%.dll,\$@).a"
69496948
else
69506949
SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$@.a"
69516950
fi
@@ -9019,8 +9018,6 @@ rm -rf conftest*
90199018

90209019
printf "%s\n" "#define TCL_MAJOR_VERSION 8" >>confdefs.h
90219020

9022-
fi
9023-
if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tk8}" != x; then
90249021

90259022
printf "%s\n" "#define TK_MAJOR_VERSION 8" >>confdefs.h
90269023

win/rules.vc

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -881,10 +881,6 @@ USE_THREAD_ALLOC= 0
881881
!message *** Build for Tcl8
882882
TCL_BUILD_FOR = 8
883883
!endif
884-
!if [nmakehlp -f $(OPTS) "tk8"]
885-
!message *** Build for Tk8
886-
TK_BUILD_FOR = 8
887-
!endif
888884

889885
!if $(TCL_MAJOR_VERSION) == 8
890886
!if [nmakehlp -f $(OPTS) "time64bit"]
@@ -1454,10 +1450,7 @@ OPTDEFINES = $(OPTDEFINES) /D_USE_64BIT_TIME_T=1
14541450
!endif
14551451
!endif
14561452
!if "$(TCL_BUILD_FOR)" == "8"
1457-
OPTDEFINES = $(OPTDEFINES) /DTCL_MAJOR_VERSION=8
1458-
!endif
1459-
!if "$(TK_BUILD_FOR)" == "8"
1460-
OPTDEFINES = $(OPTDEFINES) /DTK_MAJOR_VERSION=8
1453+
OPTDEFINES = $(OPTDEFINES) /DTCL_MAJOR_VERSION=8 /DTK_MAJOR_VERSION=8
14611454
!endif
14621455

14631456
# Like the TEA system only set this non empty for non-Tk extensions
@@ -1589,7 +1582,7 @@ ldebug= $(ldebug) -profile
15891582
lflags = -nologo -machine:$(MACHINE) $(LINKERFLAGS) $(ldebug)
15901583

15911584
!if $(MSVCRT) && !($(DEBUG) && !$(UNCHECKED)) && $(VCVERSION) >= 1900
1592-
lflags = $(lflags) -nodefaultlib:libucrt.lib
1585+
lflags = $(lflags) -nodefaultlib:ucrt.lib
15931586
!endif
15941587

15951588
dlllflags = $(lflags) -dll
@@ -1648,7 +1641,7 @@ default-target: $(DEFAULT_BUILD_TARGET)
16481641

16491642
!if $(MULTIPLATFORM_INSTALL)
16501643
default-pkgindex:
1651-
@echo if {[package vsatisfies [package provide Tcl] 9.0-]} { > $(OUT_DIR)\pkgIndex.tcl
1644+
@echo if {[package vsatisfies [package provide Tcl] 9.0]} { > $(OUT_DIR)\pkgIndex.tcl
16521645
@echo package ifneeded $(PRJ_PACKAGE_TCLNAME) $(DOTVERSION) \
16531646
[list load [file join $$dir $(PLATFORM_IDENTIFY) $(PRJLIBNAME9)]] >> $(OUT_DIR)\pkgIndex.tcl
16541647
@echo } else { >> $(OUT_DIR)\pkgIndex.tcl
@@ -1657,7 +1650,7 @@ default-pkgindex:
16571650
@echo } >> $(OUT_DIR)\pkgIndex.tcl
16581651
!else
16591652
default-pkgindex:
1660-
@echo if {[package vsatisfies [package provide Tcl] 9.0-]} { > $(OUT_DIR)\pkgIndex.tcl
1653+
@echo if {[package vsatisfies [package provide Tcl] 9.0]} { > $(OUT_DIR)\pkgIndex.tcl
16611654
@echo package ifneeded $(PRJ_PACKAGE_TCLNAME) $(DOTVERSION) \
16621655
[list load [file join $$dir $(PRJLIBNAME9)]] >> $(OUT_DIR)\pkgIndex.tcl
16631656
@echo } else { >> $(OUT_DIR)\pkgIndex.tcl

0 commit comments

Comments
 (0)