ports/99971: [PATCH] cad/brlcad: fix build on sparc64

Michael Johnson ahze at FreeBSD.org
Sun Jul 9 17:20:20 UTC 2006


>Number:         99971
>Category:       ports
>Synopsis:       [PATCH] cad/brlcad: fix build on sparc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 09 17:20:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Michael Johnson
>Release:        
>Organization:
>Environment:
>Description:
- Fix build on sparc64, PTHREAD_LIBS is not always linked when it is needed
  so pass it to configure as an extra lib

Port maintainer (erik at smluc.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- brlcad-7.8.2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/cad/brlcad/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- Makefile	6 Jul 2006 13:56:37 -0000	1.16
+++ Makefile	9 Jul 2006 13:15:27 -0000
@@ -29,7 +29,7 @@
 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 @@
 
 .include <bsd.port.pre.mk>
 
+.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
--- brlcad-7.8.2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list