From 06a79a303255e5c3105d504d9ed4105e3329af6b Mon Sep 17 00:00:00 2001 From: abs Date: Sat, 29 Dec 2001 16:53:34 +0000 Subject: Fix audio/libvorbis to work on 1.5 arm32 platforms - avoid optimisation when compiling floor1.c --- audio/libvorbis/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'audio/libvorbis') diff --git a/audio/libvorbis/Makefile b/audio/libvorbis/Makefile index 42b6a2dc3ba..2bbbdbca8de 100644 --- a/audio/libvorbis/Makefile +++ b/audio/libvorbis/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2001/11/29 19:46:10 jlam Exp $ +# $NetBSD: Makefile,v 1.12 2001/12/29 16:53:34 abs Exp $ DISTNAME= libvorbis-1.0rc2 PKGNAME= libvorbis-1.0.0.6 @@ -20,5 +20,13 @@ LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig PLIST_SUBST+= DISTNAME=${DISTNAME} +.if (${MACHINE_ARCH} == "arm32") +ARM32_COMPILER_WORKAROUND!=gcc -v 2>&1 | awk '/egcs-2.91.66/{print $$3}' +.ifdef ${ARM32_COMPILER_WORKAROUND} +post-configure: + printf '\nfloor1.lo:\n\t$$(LIBTOOL) --mode=compile $$(COMPILE) -O0 -c $$<\n\n' >> ${WRKSRC}/lib/Makefile +.endif +.endif + .include "../../audio/libogg/buildlink.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3