...
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
gmake[1]: *** [luajit] Error 1
gmake[1]: Leaving directory `/root/luajit-2.0/src'
gmake: *** [default] Error 2
Regards,
Will
On Mon, Jun 13, 2011 at 4:10 PM, Mike Pall <
mikelu-1106@mike.de> wrote:
> 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 ...
>
> --Mike
>
>