In default configuration Lua uses wrong /usr/local/{lib,share} in it's
module/script search path. This patch change it to the usage of the standard
/usr/{lib,share} directories.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
HOMEPAGE = "http://www.lua.org/"
DEPENDS += "readline"
-PR = "r7"
+PR = "r8"
SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz \
file://bitwise_operators.patch \
file://lua5.1.pc \
TARGET_CC_ARCH += " -fPIC ${LDFLAGS}"
EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -DLUA_USE_LINUX -fPIC' MYLDFLAGS='${LDFLAGS}'"
+do_configure_prepend() {
+ sed -i -e s:/usr/local:${prefix}:g src/luaconf.h
+}
+
do_compile () {
cp ${WORKDIR}/lua5.1.pc ${S}/
oe_runmake linux