From e022ecbc45f8c71b8c9f69666181d1b951107b43 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 22 Apr 2006 07:07:55 +0000 Subject: Only use assembler code on i386. Fixes amd64 build and PR 33331 by Ben Collver. --- graphics/png/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/graphics/png/Makefile b/graphics/png/Makefile index 0b524c8fb13..bb9ee968c5e 100644 --- a/graphics/png/Makefile +++ b/graphics/png/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.77 2006/04/17 13:44:46 wiz Exp $ +# $NetBSD: Makefile,v 1.78 2006/04/22 07:07:55 wiz Exp $ DISTNAME= libpng-1.2.9 PKGNAME= ${DISTNAME:S/lib//} @@ -22,6 +22,12 @@ PKGCONFIG_OVERRIDE= scripts/libpng.pc.in TEST_TARGET= test USE_LIBTOOL= yes +.include "../../mk/bsd.prefs.mk" + +.if ${MACHINE_ARCH} != "i386" +CPPFLAGS+= -DPNG_NO_ASSEMBLER_CODE +.endif + SUBST_CLASSES+= rpathfix SUBST_FILES.rpathfix= scripts/libpng-config.in SUBST_MESSAGE.rpathfix= Adding rpath to libpng-config. -- cgit v1.2.3