[vlc-devel] [PATCH] contrib: lua: remove the cross compiler environment when compiling native luac
Steve Lhomme
robux4 at ycbcr.xyz
Wed Jan 29 15:29:57 CET 2020
On 2020-01-29 14:49, Alexandre Janniaux wrote:
> Hi,
>
> Can you provide more context about why and where this is
> needed in the commit message?
>
> Otherwise, it seems that CPPFLAGS is already defined right
> above for WIN32 in cross compile, and HAVE_CROSS_COMPILE
> used there, maybe HAVE_WIN32 / HAVE_CROSS_COMPILE can be
> swapped and this code moved there?
This is for the Raspberry Pi built script I'm about to send
https://code.videolan.org/robUx4/vlc/commit/b7f4f19b7e64ba71b718a6029a2115053981cd45
I set CFLAGS, CXXFLAGS, CPPFLAGS and LDFLAGS in the environment.
These are incorrectly used by this script that builds a native file
(oustide of extra/tools)
> Regards,
> --
> Alexandre Janniuax
> Videolabs
>
> On Wed, Jan 29, 2020 at 12:22:16PM +0100, Steve Lhomme wrote:
>> ---
>> contrib/src/lua/rules.mak | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
>> index 309b9940fe5..ca6c207ba32 100644
>> --- a/contrib/src/lua/rules.mak
>> +++ b/contrib/src/lua/rules.mak
>> @@ -94,6 +94,11 @@ LUACVARS=CPPFLAGS="-DLUA_DL_DLL"
>> endif
>> endif
>>
>> +ifdef HAVE_CROSS_COMPILE
>> +# Cancel the special environment for the host
>> +LUACVARS+=CFLAGS="" CPPFLAGS="" LDFLAGS=""
>> +endif
>> +
>> luac: lua-$(LUA_VERSION).tar.gz .sum-luac
>> # DO NOT use the same intermediate directory as the lua target
>> rm -Rf -- $@-$(LUA_VERSION) $@
>> --
>> 2.17.1
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
More information about the vlc-devel
mailing list