Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jul 2006 13:17:09 GMT
From:      Michael Johnson <ahze@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        erik@smluc.org
Subject:   ports/99971: [PATCH] cad/brlcad: fix build on sparc64
Message-ID:  <200607091317.k69DH9EZ031308@blueherron.ahze.net>
Resent-Message-ID: <200607091720.k69HKI1V082076@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607091317.k69DH9EZ031308>