use lower optimization levels, so compiles work on sparc
This commit is contained in:
parent
c8ac2559ff
commit
16f4169646
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile.inc,v 1.109 2015/02/01 12:52:53 ratchov Exp $
|
||||
# $OpenBSD: Makefile.inc,v 1.110 2015/04/17 07:58:12 phessler Exp $
|
||||
|
||||
# IMPORTANT! If you make any changes to the Python ports, be sure
|
||||
# to also update files/CHANGES.OpenBSD for your change. This is a
|
||||
@ -119,6 +119,10 @@ CONFIGURE_ARGS += --srcdir=${WRKSRC} \
|
||||
--with-system-expat \
|
||||
--with-system-ffi
|
||||
|
||||
.if ${MACHINE_ARCH:Msparc}
|
||||
CFLAGS+=-O0
|
||||
.endif
|
||||
|
||||
CONFIGURE_ENV += OPT='${CFLAGS} -fPIC' CPPFLAGS='-I${LOCALBASE}/include' \
|
||||
LDFLAGS='-L${LOCALBASE}/lib/' SVNVERSION=no \
|
||||
LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.19 2015/02/11 00:07:47 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.20 2015/04/17 07:58:12 phessler Exp $
|
||||
|
||||
COMMENT= Google VP8/VP9 video codec
|
||||
|
||||
@ -38,7 +38,7 @@ MAKE_FLAGS= LIBVPX_VERSION=${LIBvpx_VERSION} verbose=yes
|
||||
|
||||
# compiler spins at 100% CPU on vp9/vp9_cx_iface.c. using -O1
|
||||
# works around the issue.
|
||||
.if ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "sparc64"
|
||||
.if ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "sparc64" ||${MACHINE_ARCH} == "sparc"
|
||||
CFLAGS+= -O1
|
||||
.endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user