lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mike,

That worked!  I have attached an updated patch if you would like to add the changes back into LuaJIT.

Regards,

Will

On Mon, Jun 13, 2011 at 7:07 PM, Mike Pall <mikelu-1106@mike.de> wrote:
Will Metcalf wrote:
> Removing visibility modification results in..
>
> make
> ...
> A whole bunch of warnings similar to "lib_math.c:120: warning: visibility
> attribute not supported in this configuration; ignored"
> ...
> DYNLINK   libluajit.so
> ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol
> lj_err_allmsg: a GOT relative relocation must reference a local symbol

Ick. Ok, so we'll forget about that.

> Trying to compile with BUILDMODE= static results in the following
>
> make
> ...
> AR        libluajit.a
> CC        luajit.o
> BUILDVM   ../lib/vmdef.lua
> LINK      luajit
> ld: fatal: unrecognized option '-E'
> ld: fatal: use the -z help option for usage information
> collect2: ld returned 1 exit status

Looks like the Solaris linker exports all symbols by default.
Try to  comment out the following line in src/Makefile:
 TARGET_XLDFLAGS+= -Wl,-E

--Mike


Attachment: 0001-Support-for-building-on-Solaris-11.-Currently-only-s.patch
Description: Binary data