Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2004 21:33:09 -0500 (EST)
From:      Hendrik Scholz <hendrik@scholz.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        him@richardkiss.com
Subject:   ports/63202: amd64-fix: lang/lua4
Message-ID:  <20040222023309.AF2BE39819@slurmcan.wormulon.net>
Resent-Message-ID: <200402220240.i1M2eI45016842@freefall.freebsd.org>

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

>Number:         63202
>Category:       ports
>Synopsis:       amd64-fix: lang/lua4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 21 18:40:18 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hendrik Scholz
>Release:        FreeBSD 5.2.1-RC amd64
>Organization:
>Environment:
System: FreeBSD slurmcan.wormulon.net 5.2.1-RC FreeBSD 5.2.1-RC #0: Sat Jan 31 12:38:34 GMT 2004 root@ngoc.NUXI.com:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:

Add -fPIC to allow compilation on amd64.
Reported by: bento
			 http://bento.freebsd.org/errorlogs/amd64-5-latest/lua-4.0_2.log

>How-To-Repeat:
	
>Fix:

	

--- lua4-amd64.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/FreeBSD-CVS/ports/lang/lua4/Makefile,v
retrieving revision 1.17
diff -u -r1.17 Makefile
--- Makefile	24 Sep 2003 09:36:54 -0000	1.17
+++ Makefile	22 Feb 2004 02:31:27 -0000
@@ -48,4 +48,8 @@
 	@${STRIP_CMD} ${PREFIX}/bin/lua
 	@${STRIP_CMD} ${PREFIX}/bin/luac
 
+.if ${MACHINE_ARCH:L} == "amd64"
+CFLAGS+=    "-fPIC"
+.endif
+
 .include <bsd.port.mk>
--- lua4-amd64.diff ends here ---


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



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