[Buildroot] [PATCH] luajit: new package

François Perrad francois.perrad at gadz.org
Tue Jul 17 08:07:21 UTC 2012


2012/7/15 Thomas Petazzoni <thomas.petazzoni at free-electrons.com>:
> Le Sun, 15 Jul 2012 19:19:03 +0200,
> François Perrad <francois.perrad at gadz.org> a écrit :
>
>> -Wl,-rpath,/home/user/build/qarm/host/usr/lib" -C
>> /home/user/build/qarm/build/luajit-2.0.0-beta10 amalg
>> /usr/bin/make: invalid option -- '3'
>> /usr/bin/make: invalid option -- '2'
>>
>> so, I remove extra quote :
>> ifeq ($(BR2_ARCH_IS_64),y)
>> LUAJIT_HOST_CC=$(HOSTCC)
>> else
>> LUAJIT_HOST_CC=$(HOSTCC) -m32
>> endif
>
> Hum, yes, this part was a last-minute addition, which was wrong
> apparently. But this doesn't answer my initial question: it is not
> possible to build luajit for a 64 bits architecture on a 32 bits host.
> If this isn't solved, we can't include luajit as is.
>
>> and the build command could be rewrite with CROSS :
>> define LUAJIT_BUILD_CMDS
>>       $(MAKE) PREFIX="/usr" \
>>               HOST_CC="$(LUAJIT_HOST_CC)" \
>>               CROSS="$(TARGET_CROSS)" \
>>               -C $(@D) amalg
>> endef
>
> No, using TARGET_CROSS directly doesn't work when ccache is enabled.
> ccache is only used in TARGET_CC and TARGET_CXX, that's why I've done
> this this way.
>
> Can you look at the bitness problem?

see http://www.freelists.org/post/luajit/crosscompiling-with-different-bitness

François.

>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com


More information about the buildroot mailing list