lua: make sure that CFLAGS are passed
We were passing a custom MYCFLAGS value to Lua's Makefile, but because of $(TARGET_CONFIGURE_OPTS), we were also passing a CFLAGS variable, which was overriding Lua's internal CFLAGS variable. The result was that MYCFLAGS wasn't taken into account. Extracted from the patch proposed by François Perrad in bug #2353. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
e6c4ce6cef
commit
8305f6ffbc
|
@ -24,7 +24,9 @@ endif
|
||||||
define LUA_BUILD_CMDS
|
define LUA_BUILD_CMDS
|
||||||
sed -i -e 's/-O2//' $(@D)/src/Makefile
|
sed -i -e 's/-O2//' $(@D)/src/Makefile
|
||||||
sed -i -e 's/\/usr\/local/\/usr/' $(@D)/etc/lua.pc
|
sed -i -e 's/\/usr\/local/\/usr/' $(@D)/etc/lua.pc
|
||||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) MYCFLAGS="$(LUA_MYCFLAGS)" \
|
$(MAKE) \
|
||||||
|
CC="$(TARGET_CC)" RANLIB="$(TARGET_RANLIB)" \
|
||||||
|
MYCFLAGS="$(TARGET_CFLAGS) $(LUA_MYCFLAGS)" \
|
||||||
MYLIBS="$(LUA_MYLIBS)" AR="$(TARGET_CROSS)ar rcu" \
|
MYLIBS="$(LUA_MYLIBS)" AR="$(TARGET_CROSS)ar rcu" \
|
||||||
PKG_VERSION=$(LUA_VERSION) -C $(@D)/src all
|
PKG_VERSION=$(LUA_VERSION) -C $(@D)/src all
|
||||||
endef
|
endef
|
||||||
|
|
Loading…
Reference in New Issue