2012-07-18 15:59:10 +02:00
|
|
|
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
|
2012-10-18 10:56:39 +02:00
|
|
|
@@ -669,7 +669,7 @@
|
2012-07-18 15:59:10 +02:00
|
|
|
|
|
|
|
$(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"
|
|
|
|
|