Geetha, ANGLER - EIT wrote:
Hi all,
I am new to neko. I want to build neko from source on Mac. Please help me how to do that. Thanks
Sagi..
If you use darwinports (macports) to install the boehm gc garbage collector (boehmgc-devel), then you can download the neko source tarball and change the top of the makefile to read the following:

@@@
## CONFIG

INSTALL_PREFIX = /usr/local

CFLAGS = -Wall -O3 -fPIC -fomit-frame-pointer -I vm -I /opt/local/include -D_GNU_SOURCE
EXTFLAGS = -pthread
MAKESO = $(CC) -shared -dynamiclib -WBsymbolic
LIBNEKO_NAME = libneko.so
LIBNEKO_LIBS = -L/opt/local/lib -ldl -lgc -lm
NEKOVM_FLAGS = -Lbin -lneko
STD_NDLL_FLAGS = ${NEKOVM_FLAGS}
INSTALL_FLAGS =

NEKO_EXEC = DYLD_LIBRARY_PATH=../bin:${LD_LIBRARY_PATH} LD_LIBRARY_PATH=../bin:${LD_LIBRARY_PATH} NEKOPATH=../boot:../bin ../bin/neko
@@@

this seems to compile on my OSX 10.5.8 - note though I still had to run nekoc using "LD_LIBRARY_PATH=/opt/local/lib nekoc" due to the non-standard location of the gc.

- Niel

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to