[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANNOUNCE] Lua 5.0 (pre-release) now available
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 1 Apr 2003 21:43:14 -0300
>Got a compile problem on Mac OS X:
>gcc -o ../../bin/luac -Wl,-E luac.o print.o lopcodes.o -L../../lib
>-llua -llualib -lm -ldl
>ld: unknown flag: -E
config says:
# Write here any options you may need for your C linker.
# Support for dynamic loading in Linux with gcc needs -Wl,-E. If you are not
# using gcc or do not want support for dynamic loading, leave MYLDFLAGS empty.
#
MYLDFLAGS= -Wl,-E
So, just comment the line above. We left this as the default so that
compilation under Linux would work cleanly.
Mac OS X does have support for dynamic loading; there's even a dlfcn
module for it at http://www.opendarwin.org/projects/dlcompat/ , but I
don't know whether you need something like -Wl,-E. Perhaps it's called
-export-dynamic instead of -E?
Thanks for the report. That's the kind of thing we're looking for.
--lhf