lua-users home
lua-l archive

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


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