diff options
author | jlam <jlam@pkgsrc.org> | 2004-11-16 22:44:51 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-11-16 22:44:51 +0000 |
commit | 1f652193aedd01030ec4725a8b2fa10d83f79c0b (patch) | |
tree | 00341057a54944f5d6a26484cedef7b65ceb7d1d /lang/tcl | |
parent | 96f0797e8611a16f5e907aa27cf3c6524286d51e (diff) | |
download | pkgsrc-1f652193aedd01030ec4725a8b2fa10d83f79c0b.tar.gz |
Migrate OS/architecture hacks for correct compilation to a separate
hacks.mk file.
Diffstat (limited to 'lang/tcl')
-rw-r--r-- | lang/tcl/Makefile | 8 | ||||
-rw-r--r-- | lang/tcl/hacks.mk | 14 |
2 files changed, 15 insertions, 7 deletions
diff --git a/lang/tcl/Makefile b/lang/tcl/Makefile index 444bec01802..acbde3e7fed 100644 --- a/lang/tcl/Makefile +++ b/lang/tcl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2004/10/30 05:18:51 minskim Exp $ +# $NetBSD: Makefile,v 1.41 2004/11/16 22:44:51 jlam Exp $ DISTNAME= tcl8.4.7-src PKGNAME= tcl-8.4.7 @@ -41,12 +41,6 @@ CONFIGURE_ARGS+= --disable-threads # Add ${VIEWBASE}/lib/tcl to the list of locations for Tcl packages. CONFIGURE_ENV+= TCL_PACKAGE_PATH="${VIEWBASE}/lib/tcl" -# NetBSD-1.5.x-m68k platforms apparently have a compiler optimization bug -# tickled by the Tcl code that manifests in code generation problems. -.if (${MACHINE_PLATFORM:MNetBSD-1.5*-m68k} != "") -CONFIGURE_ENV+= COMPILER_OPTIMIZATION_BUG=YES -.endif - .if ${OPSYS} == "NetBSD" .if empty(OS_VERSION:M1.[56].*) .include "../../mk/pthread.buildlink3.mk" diff --git a/lang/tcl/hacks.mk b/lang/tcl/hacks.mk new file mode 100644 index 00000000000..d818263d071 --- /dev/null +++ b/lang/tcl/hacks.mk @@ -0,0 +1,14 @@ +# $NetBSD: hacks.mk,v 1.1 2004/11/16 22:44:51 jlam Exp $ + +### [Wed Jul 25 19:42:58 UTC 2001 : jlam] +### Force no optimization (-O0) on NetBSD-1.5.x/m68k machines as there +### appears to be an optimization bug that causes the build to fail +### (pkg/13395). The problem appeared in the original PR on an Amiga +### running NetBSD 1.5.1 and also on a mac68k running NetBSD 1.5.1. +### This workaround was tested on the mac68k system (kindly provided +### by Jon Lindgren). +### +.if !empty(MACHINE_PLATFORM:MNetBSD-1.5*-m68k) +PKG_HACKS+= netbsd-1-5-m68k-codegen +BUILDLINK_TRANSFORM+= rm:-O[0-9]* +.endif |