luajit: refactor without shared-lib.patch
authorFrancois Perrad <fperrad@gmail.com>
Sat, 1 Mar 2014 17:23:03 +0000 (18:23 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 3 Mar 2014 22:09:51 +0000 (23:09 +0100)
the variable BUILDMODE does the job

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/luajit/luajit-02-shared-lib.patch [deleted file]
package/luajit/luajit.mk

diff --git a/package/luajit/luajit-02-shared-lib.patch b/package/luajit/luajit-02-shared-lib.patch
deleted file mode 100644 (file)
index 361e5c2..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-Compile the luajit binary dynamically against the luajit library
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-
-Index: b/src/Makefile
-===================================================================
---- a/src/Makefile
-+++ b/src/Makefile
-@@ -669,7 +669,7 @@
- $(LUAJIT_T): $(TARGET_O) $(LUAJIT_O) $(TARGET_DEP)
-       $(E) "LINK      $@"
--      $(Q)$(TARGET_LD) $(TARGET_ALDFLAGS) -o $@ $(LUAJIT_O) $(TARGET_O) $(TARGET_ALIBS)
-+      $(Q)$(TARGET_LD) $(TARGET_ALDFLAGS) -o $@ $(LUAJIT_O) -lluajit -L. $(TARGET_ALIBS)
-       $(Q)$(TARGET_STRIP) $@
-       $(E) "OK        Successfully built LuaJIT"
index 72720d89ca2a9233e3c63e49c39cf77bb8888b28..32596a1e2caa869367d1f0beaaa9abdad4451c4c 100644 (file)
@@ -44,6 +44,7 @@ define LUAJIT_BUILD_CMDS
                HOST_CFLAGS="$(HOST_CFLAGS)" \
                HOST_LDFLAGS="$(HOST_LDFLAGS)" \
                $(LUAJIT_NO_LARGEFILE) \
+               BUILDMODE=dynamic \
                -C $(@D) amalg
 endef