diff --git a/archivers/bzip2/Makefile b/archivers/bzip2/Makefile index 345b130e15e..4c1adc07b96 100644 --- a/archivers/bzip2/Makefile +++ b/archivers/bzip2/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.40 2001/10/31 16:49:46 brad Exp $ +# $OpenBSD: Makefile,v 1.41 2002/01/27 20:00:16 pvalchev Exp $ COMMENT= "block-sorting file compressor, unencumbered" @@ -22,6 +22,11 @@ BZ2_CFLAGS= -Wall -Winline BZ2_CFLAGS+= -fomit-frame-pointer -fno-strength-reduce .endif +# XXX gcc optimization bug temporary workaround +.if ${MACHINE_ARCH:Msparc64} +BZ2_CFLAGS+= -O0 +.endif + MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${BZ2_CFLAGS}" FAKE_FLAGS= ${MAKE_FLAGS} PREFIX="${PREFIX}" DESTDIR="${WRKINST}" REGRESS_FLAGS= LD_LIBRARY_PATH="${WRKBUILD}"