From 872100372c8620e916dbf25c91c25c10f6959303 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Wed, 30 Mar 2005 11:57:57 +0000 Subject: Replace -O2 with -O1 on NetBSD-2.0*-*; workaround for pkg/29825. I am unable to reproduce this problem on NetBSD-2.99.15, and this fix made things work for the submitter on 2.0. --- wm/fluxbox/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/wm/fluxbox/Makefile b/wm/fluxbox/Makefile index 67a5a015be9..a526fb93698 100644 --- a/wm/fluxbox/Makefile +++ b/wm/fluxbox/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2005/03/24 15:00:40 jmcneill Exp $ +# $NetBSD: Makefile,v 1.21 2005/03/30 11:57:57 jmcneill Exp $ # DISTNAME= fluxbox-0.9.12 @@ -19,10 +19,17 @@ GNU_CONFIGURE= YES USE_GNU_TOOLS= make USE_LIBTOOL= YES +.include "../../mk/bsd.prefs.mk" + +# Workaround for pkg/29825 -- older compilers apparently +# have problems building this package. +.if (${MACHINE_PLATFORM:MNetBSD-2.0*-*} != "") +BUILDLINK_TRANSFORM+= rename:-O2:-O1 +.endif + CONFIGURE_ARGS+= --enable-nls CONFIGURE_ARGS+= --enable-xinerama -.include "../../mk/bsd.prefs.mk" .include "options.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3