ports/63202: amd64-fix: lang/lua4

Hendrik Scholz hendrik at scholz.net
Sun Feb 22 02:40:19 UTC 2004


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



More information about the freebsd-ports-bugs mailing list