[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Installing luafilesystem on Mac OS X 10.6
- From: Alexander Gladysh <agladysh@...>
- Date: Thu, 8 Apr 2010 15:14:33 +0400
> MACOSX_DEPLOYMENT_TARGET="10.3"
> export MACOSX_DEPLOYMENT_TARGET
> gcc -O2 -fno-common -c -o lfs.o lfs.c
> gcc -bundle -undefined dynamic_lookup -o lfs.so lfs.o
> should actually work?
Works for me here.
I've downloaded lfs 1.5.0 sources and tried to build it.
OS X build requires user to manually change the config file:
# OS dependent
#LIB_OPTION= -shared #for Linux
LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
(I think that's a bad practice!)
After the change it builds the correct bundle for me.
$ file lfs.so
lfs.so: Mach-O 64-bit bundle x86_64
$ lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> package.cpath="./lfs.so"
> require 'lfs'
Alexander.