diff options
author | jlam <jlam@pkgsrc.org> | 2001-07-25 19:42:58 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-07-25 19:42:58 +0000 |
commit | 27a2e05d4d0187959def23e27ab4c2dd22c2d5e8 (patch) | |
tree | ff8283a7c176e13772af962ec80c420a126f1331 /lang/tcl/Makefile | |
parent | 12ca9cd1236f2d079d11a114226d474b2076394a (diff) | |
download | pkgsrc-27a2e05d4d0187959def23e27ab4c2dd22c2d5e8.tar.gz |
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).
Diffstat (limited to 'lang/tcl/Makefile')
-rw-r--r-- | lang/tcl/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/tcl/Makefile b/lang/tcl/Makefile index 4b4fba7fc98..1417393aa4e 100644 --- a/lang/tcl/Makefile +++ b/lang/tcl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2001/06/30 18:24:17 jlam Exp $ +# $NetBSD: Makefile,v 1.11 2001/07/25 19:42:58 jlam Exp $ # DISTNAME= tcl8.3.2 @@ -29,6 +29,15 @@ INSTALL_TARGET= install # CONFIGURE_ARGS+= --mandir=${WRKDIR}/man +.include "../../mk/bsd.prefs.mk" + +# 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 + # Modify mkLinks script to remove the short-filename manpage if it was # linked to a longer filename. # |