Browse Source

tcl: update to 8.6.6, filter-out -ffast-math

Waldemar Brodkorb 9 years ago
parent
commit
17e8dc5dec
2 changed files with 3 additions and 41 deletions
  1. 3 2
      package/tcl/Makefile
  2. 0 39
      package/tcl/patches/patch-unix_tclUnixTime_c

+ 3 - 2
package/tcl/Makefile

@@ -4,9 +4,9 @@
 include ${ADK_TOPDIR}/rules.mk
 
 PKG_NAME:=		tcl
-PKG_VERSION:=		8.6.1
+PKG_VERSION:=		8.6.6
 PKG_RELEASE:=		1
-PKG_HASH:=		16ee769248e64ba1cae6b4834fcc4e4edd7470d881410e8d58f7dd1434343514
+PKG_HASH:=		a265409781e4b3edcc4ef822533071b34c3dc6790b893963809b9fe221befe07
 PKG_DESCR:=		tcl scripting language
 PKG_SECTION:=		dev/lang
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=tcl/}
@@ -19,6 +19,7 @@ include ${ADK_TOPDIR}/mk/package.mk
 
 $(eval $(call PKG_template,TCL,tcl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
+TARGET_CFLAGS:=		$(filter-out -ffast-math,$(TARGET_CFLAGS))
 TARGET_LDFLAGS+=	-ldl
 CONFIGURE_ENV+=		tcl_cv_strstr_unbroken=ok \
 			tcl_cv_strtod_buggy=ok \

+ 0 - 39
package/tcl/patches/patch-unix_tclUnixTime_c

@@ -1,39 +0,0 @@
---- tcl8.5.8.orig/unix/tclUnixTime.c	2008-04-14 19:49:59.000000000 +0200
-+++ tcl8.5.8/unix/tclUnixTime.c	2011-01-13 15:59:00.000000000 +0100
-@@ -164,12 +164,6 @@ TclpGetWideClicks(void)
- 
- 	(*tclGetTimeProcPtr) (&time, tclTimeClientData);
- 	now = (Tcl_WideInt) (time.sec*1000000 + time.usec);
--    } else {
--#ifdef MAC_OSX_TCL
--	now = (Tcl_WideInt) (mach_absolute_time() & INT64_MAX);
--#else
--#error Wide high-resolution clicks not implemented on this platform
--#endif
-     }
- 
-     return now;
-@@ -200,23 +194,6 @@ TclpWideClicksToNanoseconds(
- 
-     if (tclGetTimeProcPtr != NativeGetTime) {
- 	nsec = clicks * 1000;
--    } else {
--#ifdef MAC_OSX_TCL
--	static mach_timebase_info_data_t tb;
--	static uint64_t maxClicksForUInt64;
--	
--	if (!tb.denom) {
--	    mach_timebase_info(&tb);
--	    maxClicksForUInt64 = UINT64_MAX / tb.numer;
--	}
--	if ((uint64_t) clicks < maxClicksForUInt64) {
--	    nsec = ((uint64_t) clicks) * tb.numer / tb.denom;
--	} else {
--	    nsec = ((long double) (uint64_t) clicks) * tb.numer / tb.denom;
--	}
--#else
--#error Wide high-resolution clicks not implemented on this platform
--#endif
-     }
- 
-     return nsec;