piccontrol_0.4.bb: Fix linking against lua.
authorStefan Schmidt <stefan@datenfreihafen.org>
Sun, 28 Mar 2010 11:48:41 +0000 (13:48 +0200)
committerStefan Schmidt <stefan@datenfreihafen.org>
Sun, 28 Mar 2010 11:53:29 +0000 (13:53 +0200)
Lua is staged as liblua.a instead of liblua5.1.a correct LDFLAGS accordingly.
Courtesy Guo Hongruan <camelguo@gmail.com> for finding out about the porblem and
preparing the initial fix.

While being there I also commented out COMPATIBLE_MACHINE as it builds fine for
other machines even it may be only usefull on the specific one.

recipes/piccontrol/piccontrol_0.4.bb

index cfdef98..f120d22 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "console/network"
 DEPENDS = "lua5.1"
 PR = "r1"
 LICENSE = "GPL"
-COMPATIBLE_MACHINE = "tsx09"
+#COMPATIBLE_MACHINE = "tsx09"
 
 SRC_URI = "http://byronbradley.co.uk/piccontrol/qcontrol-0.4.tar.gz \
            file://luafix-0.4.patch;patch=0 \
@@ -17,7 +17,7 @@ inherit update-rc.d
 INITSCRIPT_NAME = "piccontrol"
 INITSCRIPT_PARAMS = "defaults"
 
-LDFLAGS        += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl "
+LDFLAGS        += " ${STAGING_LIBDIR}/liblua.a -lpthread -lm -ldl "
 CFLAGS += " -I${STAGING_INCDIR}/lua5.1 "
 
 do_install() {