Better support for altivec on powerpc. pass the enable-altivec to configure
if altivec flavor is selected, otherwise disable-altivec. ok pvalchev
This commit is contained in:
parent
4e1ec07d3e
commit
99f55d01fd
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.16 2002/08/18 09:38:26 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.17 2002/08/28 01:34:37 drahn Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= alpha i386 powerpc sparc64
|
||||
|
||||
@ -39,6 +39,9 @@ MAKE_ENV=GAS_DIR=${TRUEPREFIX}/${MACHINE_ARCH}-unknown-openbsd${OPSYS_VER}/bin
|
||||
|
||||
.if ${FLAVOR:L} == "altivec"
|
||||
ONLY_FOR_ARCHS= powerpc
|
||||
CONFIGURE_ARGS+=--enable-altivec
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-altivec
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,17 +0,0 @@
|
||||
$OpenBSD: patch-configure,v 1.5 2002/07/16 13:38:04 espie Exp $
|
||||
--- configure.orig Sun Jun 30 02:54:14 2002
|
||||
+++ configure Tue Jul 16 15:17:38 2002
|
||||
@@ -11804,8 +11804,11 @@ _ACEOF
|
||||
powerpc|ppc)
|
||||
if test "x$GCC" = xyes; then
|
||||
CFLAGS="$CFLAGS -fomit-frame-pointer -funroll-loops"
|
||||
- XCFLAGS="-Wa,-m7400"
|
||||
- USE_ALTIVEC=yes
|
||||
+ echo | as -m7400 >/dev/null
|
||||
+ if test $? -eq 0; then
|
||||
+ XCFLAGS="-Wa,-m7400"
|
||||
+ USE_ALTIVEC=yes
|
||||
+ fi
|
||||
fi
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user