From johans@stack.nl  Thu Feb 17 14:26:54 2005
Return-Path: <johans@stack.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A3DDD16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Feb 2005 14:26:54 +0000 (GMT)
Received: from skynet.stack.nl (skynet.stack.nl [131.155.140.225])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4C0EF43D46
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Feb 2005 14:26:54 +0000 (GMT)
	(envelope-from johans@stack.nl)
Received: by skynet.stack.nl (Postfix, from userid 65534)
	id A11DF40AD; Thu, 17 Feb 2005 15:27:31 +0100 (CET)
Received: from mud.stack.nl (mud.stack.nl [IPv6:2001:610:1108:5011:207:e9ff:fe14:b498])
	by skynet.stack.nl (Postfix) with ESMTP id 521F2409C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Feb 2005 15:27:31 +0100 (CET)
Received: by mud.stack.nl (Postfix, from userid 801)
	id 84522171DF; Thu, 17 Feb 2005 15:27:35 +0100 (CET)
Message-Id: <20050217142735.84522171DF@mud.stack.nl>
Date: Thu, 17 Feb 2005 15:27:35 +0100 (CET)
From: Johan van Selst <johans@stack.nl>
Reply-To: Johan van Selst <johans@stack.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: lang/libjit: unbreak compilation on amd64
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         77638
>Category:       ports
>Synopsis:       lang/libjit: unbreak compilation on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 17 14:30:24 GMT 2005
>Closed-Date:    Fri Feb 18 09:27:16 GMT 2005
>Last-Modified:  Fri Feb 18 09:27:16 GMT 2005
>Originator:     Johan van Selst
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD mud.stack.nl 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Jan 31 22:31:14 CET 2005 root@mud.stack.nl:/usr/obj/usr/src/sys/mud i386


	
>Description:
	
	The port Makefile incorrectly removes PIC flags.
	Fix: keep the required flags on amd64 architectures

>How-To-Repeat:
	
>Fix:

	

--- libjit/Makefile	Thu Feb 17 15:22:59 2005
+++ libjit/Makefile	Thu Feb 17 15:23:01 2005
@@ -24,10 +24,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "amd64"
-BROKEN=		"Does not compile on amd64"
-.endif
-
 post-patch:
 .if ${OSVERSION} >=	502128
 	@${REINPLACE_CMD} -e 's|#undef HAVE_TGMATH_H||' \
@@ -35,7 +31,7 @@
 .endif
 
 post-configure:
-.if ${OSVERSION} >=	502123
+.if ${OSVERSION} >=	502123 && ${ARCH} != "amd64"
 	@${REINPLACE_CMD} -e 's|$$pic_flag -DPIC||' \
 		${WRKSRC}/libtool
 .endif

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Fri Feb 18 09:27:10 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77638 
>Unformatted:
