[Buildroot] [PATCH] luarocks: fix compilation on 64bits
Peter Korsgaard
jacmet at uclibc.org
Wed Jan 15 10:12:37 UTC 2014
>>>>> "Francois" == Francois Perrad <fperrad at gmail.com> writes:
> Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
Where did you see this? On the autobuilders? If yes, please add a link.
It's not really about 32bits/64bits, but yes, x86-64 is one of the archs
needing -fPIC.
> ---
> package/luarocks/luarocks.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/package/luarocks/luarocks.mk b/package/luarocks/luarocks.mk
> index 85b6866..6cfd92e 100644
> --- a/package/luarocks/luarocks.mk
> +++ b/package/luarocks/luarocks.mk
> @@ -31,7 +31,7 @@ define HOST_LUAROCKS_INSTALL_CMDS
> echo " LUA_LIBDIR = [[$(STAGING_DIR)/usr/lib]]," >> $(LUAROCKS_CONFIG_FILE)
> echo " CC = [[$(TARGET_CC)]]," >> $(LUAROCKS_CONFIG_FILE)
> echo " LD = [[$(TARGET_CC)]]," >> $(LUAROCKS_CONFIG_FILE)
> - echo " CFLAGS = [[$(TARGET_CFLAGS)]]," >> $(LUAROCKS_CONFIG_FILE)
> + echo " CFLAGS = [[$(TARGET_CFLAGS) -fPIC]]," >> $(LUAROCKS_CONFIG_FILE)
> echo " LIBFLAG = [[-shared $(TARGET_LDFLAGS)]]," >> $(LUAROCKS_CONFIG_FILE)
What about BR2_PREFER_STATIC_LIB (for both CFLAGS and LDFLAGS lines)?
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list