ports/139207: devel/llvm: some options, use -fPIC on 64-bit platforms

Dima Panov fluffy at freebsd.org
Wed Dec 2 01:34:03 UTC 2009


On Monday 28 September 2009 20:40:02 FreeBSD-gnats-submit at freebsd.org wrote:
> Thank you very much for your problem report.
> It has the internal identification `ports/139207'.
> The individual assigned to look at your
> report is: freebsd-ports-bugs.
> 
> You can access the state of your problem report at any time
> via this link:
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=139207
> 
> >Category:       ports
> >Responsible:    freebsd-ports-bugs
> >Synopsis:       devel/llvm: some options, use -fPIC on 64-bit platforms
> >Arrival-Date:   Mon Sep 28 09:40:02 UTC 2009

Patch updated for llvm 2.6.

Brooks, it strongly needed, KOffice2 can't be builded without this.

Index: devel/llvm/Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/llvm/Makefile,v
retrieving revision 1.31
diff -u -r1.31 Makefile
--- devel/llvm/Makefile	5 Nov 2009 00:42:12 -0000	1.31
+++ devel/llvm/Makefile	2 Dec 2009 01:21:42 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	llvm
 PORTVERSION=	2.6
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel lang
 MASTER_SITES=	http://llvm.org/releases/${PORTVERSION}/
 
@@ -37,6 +37,8 @@
 
 CONFIGURE_ARGS+=	--enable-bindings=none
 
+OPTIONS=	NO_ASSERTS	"Disable assertions (needed by graphics/opengtl)" off
+
 .if defined(NOPORTDOCS)
 DOCSRCDIR=
 .else
@@ -57,6 +59,16 @@
 BROKEN=		Does not compile on sparc64
 .endif
 
+.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+CFLAGS+=	-fPIC
+.endif
+
+.ifdef(WITH_NO_ASSERTS)
+CONFIGURE_ARGS+=	--disable-assertions
+.else
+CONFIGURE_ARGS+=	--enable-assertions
+.endif
+
 post-patch:
 	${REINPLACE_CMD} -e 's|\(PROJ_docsdir.*:=\).*$$|\1${DOCSDIR}|g' \
 	    ${WRKSRC}/Makefile.config.in


-- 
Dima "Red Fox" Panov @ Home | C73E 2B72 1FFD 61BD E206 1234 A626 76ED 93E3 B018
Khabarovsk, Russia          | 2D30 2CCB 9984 130C 6F87 BAFC FB8B A09D D539 8F29
KDE at FreeBSD Team | FreeBSD committer since 10.08.2009 | FreeBSD since Sept 1995
Twitter.com:fluffy_khv | Skype:dima.panov | Jabber.org:fluffy.khv | ICQ:1745024
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/attachments/20091202/3c5b251e/attachment.sig>


More information about the freebsd-ports-bugs mailing list