ports/115723: [PATCH] lang/neko: compile error fixed.

Masanori OZAWA ozawa at ongs.co.jp
Wed Aug 22 15:00:10 UTC 2007


>Number:         115723
>Category:       ports
>Synopsis:       [PATCH] lang/neko: compile error fixed.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 22 15:00:07 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Masanori OZAWA
>Release:        FreeBSD 6.2-RELEASE
>Organization:
ONGS Inc.
>Environment:
FreeBSD mithos.ongs.co.jp 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Jan 18 20:48:07 JST 2007     root at mithos.ongs.co.jp:/usr/obj/usr/src/sys/MITHOS  i386

>Description:
- compile error fixed. (6-RELEASE amd64, 7-CURRENT amd64)
>How-To-Repeat:

>Fix:
diff -urBN neko.orig/Makefile neko/Makefile
--- neko.orig/Makefile	Tue Aug 21 15:13:33 2007
+++ neko/Makefile	Wed Aug 22 23:10:09 2007
@@ -7,6 +7,7 @@
 
 PORTNAME=	neko
 PORTVERSION=	1.6.0
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	http://nekovm.org/_media/
 
@@ -28,7 +29,9 @@
 
 # Neko needs boehm-gc with POSIX thread support.
 BC_DIR!=	cd ${PORTSDIR}/devel/boehm-gc && ${MAKE} -V WRKSRC
+BC_MAKEARGS=	BATCH=yes WITH_THREADING=true
 
+BC_CFLAGS:= ${CFLAGS}
 CFLAGS=	-I${WRKSRC} -I${PREFIX}/include
 LDFLAGS= -L${BC_DIR}/.libs -L${PREFIX}/lib
 LIBKEYNAME=
@@ -91,6 +94,7 @@
 .endif
 
 .if ${ARCH} == "amd64"
+BC_CFLAGS+=	-fPIC
 CFLAGS+=	-D_64BITS -fPIC
 .endif
 
@@ -137,7 +141,7 @@
 
 pre-build:
 	@(cd ${PORTSDIR}/devel/boehm-gc/ && \
-	    ${MAKE} BATCH=yes WITH_THREADING=true clean all)
+	    ${MAKE} CFLAGS="${BC_CFLAGS}" ${BC_MAKEARGS} clean all)
 	@${RM} -f ${BC_DIR}/.libs/*.so*
 	@for BLIB in `${LS} ${BC_DIR}/.libs/libgc.*`; do \
 	    ${MV} $${BLIB} `echo $${BLIB} | ${SED} -e 's/libgc/libnekogc/'`; \


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



More information about the freebsd-ports-bugs mailing list