[Buildroot] [PATCH] lua: fix compilation with Blackfin FLAT
Peter Korsgaard
jacmet at uclibc.org
Wed Jan 22 21:05:28 UTC 2014
>>>>> "Francois" == Francois Perrad <fperrad at gmail.com> writes:
> the dlfcn interface is not available with flat memory model
> see http://autobuild.buildroot.net/results/b41/b4146bf821d59f694546f6e3a341394cc8fa43ce/
> Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
> ---
> package/lua/lua.mk | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
> diff --git a/package/lua/lua.mk b/package/lua/lua.mk
> index 2c867f6..b263070 100644
> --- a/package/lua/lua.mk
> +++ b/package/lua/lua.mk
> @@ -15,7 +15,6 @@ LUA_LICENSE = MIT
> LUA_LICENSE_FILES = COPYRIGHT
> LUA_CFLAGS = -Wall -fPIC
> -LUA_MYLIBS += -ldl
> ifeq ($(BR2_PACKAGE_LUA_5_2),y)
> LUA_CFLAGS += -DLUA_COMPAT_ALL
> @@ -24,17 +23,22 @@ LUA_CFLAGS += -D_FILE_OFFSET_BITS=32
> endif
> endif
> +ifneq ($(BR2_BINFMT_FLAT),y)
> + LUA_CFLAGS += -DLUA_USE_DLOPEN
> + LUA_MYLIBS += -ldl
> +endif
But BINFMT_FLAT imply BR2_PREFER_STATIC_LIB. I guess we should do this
whenever BR2_PREFER_STATIC_LIB is enabled, right?
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list