From 9f1f43ca5b5b9977f35617d4e2d5158a99e8fb4f Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Fri, 14 Jul 2006 16:18:00 +0000 Subject: - fix build on sparc64 PR: 99971 Submitted by: ahze Approved by: maintainer --- cad/brlcad/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cad') diff --git a/cad/brlcad/Makefile b/cad/brlcad/Makefile index e8074a4f0d94..0020ab6b551e 100644 --- a/cad/brlcad/Makefile +++ b/cad/brlcad/Makefile @@ -29,7 +29,7 @@ INSTALLS_SHLIB= yes # Not really useful, but pet portlint CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.4 LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -CONFIGURE_ARGS+=--with-libs="-lpng" --program-transform-name="" \ +CONFIGURE_ARGS+=--with-libs="-lpng ${EXTRA_LIBS}" --program-transform-name="" \ --disable-jove-build PLIST_SUB+= PORTVERSION=${PORTVERSION} @@ -158,16 +158,20 @@ OPTIONS= OPTIMIZATION "Try building with optimizations" on .include +.if ${ARCH} == sparc64 +EXTRA_LIBS= ${PTHREAD_LIBS} +.endif + # we only run on i386 and amd64 release 5+ .if ${OSVERSION} < 500000 BROKEN= Does not compile on FreeBSD-${OSREL} -.elif !(${ARCH} == i386 || ${ARCH} == amd64) +.elif !(${ARCH} == i386 || ${ARCH} == amd64 || ${ARCH} == sparc64) IGNORE= dumps core on ${ARCH} .endif .ifdef WITH_OPTIMIZATION CONFIGURE_ARGS+= --disable-debug -.if (${ARCH} == i386 || ${ARCH} == amd64) +.if (${ARCH} == i386 || ${ARCH} == amd64 || ${ARCH} == sparc64) CONFIGURE_ARGS+= --enable-optimized .endif .endif -- cgit v1.2.3