Bug 139207 - devel/llvm: some options, use -fPIC on 64-bit platforms
Summary: devel/llvm: some options, use -fPIC on 64-bit platforms
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-28 10:40 UTC by Dima Panov
Modified: 2009-12-08 16:20 UTC (History)
0 users

See Also:


Attachments
llvm.diff (867 bytes, patch)
2009-09-28 10:40 UTC, Dima Panov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dima Panov freebsd_committer freebsd_triage 2009-09-28 10:40:02 UTC

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

for upcoming OpenCTL port llvm need to be built without assertions.

btw, fix -fPIC - on 64-bit platforms flag needs to be exist to generate correct object codes.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-09-28 10:40:46 UTC
Responsible Changed
From-To: freebsd-ports-bugs->brooks

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Dima Panov freebsd_committer freebsd_triage 2009-12-02 01:33:19 UTC
On Monday 28 September 2009 20:40:02 FreeBSD-gnats-submit@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@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
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-12-07 19:03:55 UTC
brooks      2009-12-07 19:03:42 UTC

  FreeBSD ports repository

  Modified files:
    devel/llvm           Makefile 
  Log:
  Compile with -fPIC on amd64 and ia64.
  
  Add an option to disable assertions which is required for a future
  opengtl port.
  
  PR:             ports/127718, ports/139207
  
  Revision  Changes    Path
  1.32      +13 -1     ports/devel/llvm/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 dfilter service freebsd_committer freebsd_triage 2009-12-08 16:08:22 UTC
brooks      2009-12-08 16:08:09 UTC

  FreeBSD ports repository

  Modified files:
    devel/llvm-devel     Makefile Makefile.svn_rev distinfo 
                         pkg-plist 
  Added files:
    devel/llvm-devel/files 
                           patch-tools_clang_tools_scan-build_scan-build 
  Removed files:
    devel/llvm-devel/files patch-tools_clang_utils_scan-build 
  Log:
  Update to r90769.
  Build with -fPIC on amd64 and ia64.
  Allow the user to disable asserts.
  
  PR:             ports/127718, ports/139207
  
  Revision  Changes    Path
  1.32      +19 -7     ports/devel/llvm-devel/Makefile
  1.8       +1 -1      ports/devel/llvm-devel/Makefile.svn_rev
  1.22      +3 -3      ports/devel/llvm-devel/distinfo
  1.1       +23 -0     ports/devel/llvm-devel/files/patch-tools_clang_tools_scan-build_scan-build (new)
  1.4       +0 -23     ports/devel/llvm-devel/files/patch-tools_clang_utils_scan-build (dead)
  1.24      +35 -15    ports/devel/llvm-devel/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Brooks Davis freebsd_committer freebsd_triage 2009-12-08 16:08:51 UTC
State Changed
From-To: open->closed

Applied a slightly different fix from ports/127718 to devel/llvm and 
devel/llvm-devel. 

Thanks for the submission and sorry for the delay.