[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Problems compiling LuaJIT on Solaris.
- From: Mike Pall <mikelu-1106@...>
- Date: Mon, 13 Jun 2011 23:10:23 +0200
Will Metcalf wrote:
> It appears as if I don't have a define for __solaris__ but do for
> __sun__ and __srv4__.
Hmm, strange. Lots of software out there has '#ifdef __solaris__'.
> lj_tab_len 0x4aa lj_vm_dyn.o
> lj_err_throw 0x3037 lj_vm_dyn.o
> ld: fatal: relocations remain against allocatable but non-writable sections
> collect2: ld returned 1 exit status
Ouch. I guess Solaris handles internal relocations in PIC
libraries differently than all other ELF systems. I'd need to see
what assembler code the compiler generates for that. Maybe the
problem is related to the change you made to the hidden visibility
of the internal functions? Might be hard to fix, though.
But there's an easier solution: if you don't need the shared
library, then comment out BUILDMODE= static in src/Makefile.
Maybe the static build works at least ...