[Buildroot] [PATCH] lua: fix compilation with Blackfin FLAT

François Perrad francois.perrad at gadz.org
Thu Jan 23 12:59:41 UTC 2014


2014/1/23 Peter Korsgaard <jacmet at uclibc.org>:
>>>>>> "François" == François Perrad <francois.perrad at gadz.org> writes:
>
> Hi,
>
>  >> But BINFMT_FLAT imply BR2_PREFER_STATIC_LIB. I guess we should do this
>  >> whenever BR2_PREFER_STATIC_LIB is enabled, right?
>
>  > No, the condition BR2_PREFER_STATIC_LIB is too large.
>  > The tarball Lua contains no Configure script, my patch behaves like
>  > the detection of the presence of the functions dlopen/dlclose/dlsym in
>  > a Configure script.
>  > The purpose of BR2_PREFER_STATIC_LIB as described in its help message
>  > is very different.
>
> Well, I wouldn't call it "very different". The idea is to not use shared
> libraries when PREFER_STATIC_LIB is enabled, so also not
> dlopen/dlclose/dlsym.
>
> What you perhaps mean is that there is a difference between
> architectures (or variants) where we select BR2_PREFER_STATIC_LIB
> because they cannot support shared libraries (and hence have no
> dlopen/dlclose/dlsym), and other situations where the USER just desides
> that they don't want shared libraries, even if the architecture could
> support it.

Yes, BR2_PREFER_STATIC_LIB is mostly a user choice, when
BR2_BINFMT_FLAT is an architecture limitation.

François

>
> --
> Bye, Peter Korsgaard



More information about the buildroot mailing list