aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2016-03-22 22:22:51 +0100
committerMike Pall <mike>2016-03-22 22:22:51 +0100
commit713e34054f6206cb9d453a0924ffd7a302166bdd (patch)
tree7b80d8ff413435af689a8d8d37353ab4bd3dd65d
parentcf3e01e1363659e4c2688d42598d0982e43acee9 (diff)
parent7e05355a08255f508d334eded96095e0bde06e2e (diff)
downloadluajit-713e34054f6206cb9d453a0924ffd7a302166bdd.tar.gz
luajit-713e34054f6206cb9d453a0924ffd7a302166bdd.tar.bz2
luajit-713e34054f6206cb9d453a0924ffd7a302166bdd.zip
Merge branch 'master' into v2.1
Diffstat (limited to '')
-rw-r--r--Makefile28
-rw-r--r--doc/install.html9
2 files changed, 23 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index f6446ba4..6dfbbde4 100644
--- a/Makefile
+++ b/Makefile
@@ -47,17 +47,18 @@ INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig
47INSTALL_TNAME= luajit-$(VERSION) 47INSTALL_TNAME= luajit-$(VERSION)
48INSTALL_TSYMNAME= luajit 48INSTALL_TSYMNAME= luajit
49INSTALL_ANAME= libluajit-$(ABIVER).a 49INSTALL_ANAME= libluajit-$(ABIVER).a
50INSTALL_SONAME= libluajit-$(ABIVER).so.$(MAJVER).$(MINVER).$(RELVER) 50INSTALL_SOSHORT1= libluajit-$(ABIVER).so
51INSTALL_SOSHORT= libluajit-$(ABIVER).so 51INSTALL_SOSHORT2= libluajit-$(ABIVER).so.$(MAJVER)
52INSTALL_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).$(MINVER).$(RELVER).dylib 52INSTALL_SONAME= $(INSTALL_SOSHORT2).$(MINVER).$(RELVER)
53INSTALL_DYLIBSHORT1= libluajit-$(ABIVER).dylib 53INSTALL_DYLIBSHORT1= libluajit-$(ABIVER).dylib
54INSTALL_DYLIBSHORT2= libluajit-$(ABIVER).$(MAJVER).dylib 54INSTALL_DYLIBSHORT2= libluajit-$(ABIVER).$(MAJVER).dylib
55INSTALL_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).$(MINVER).$(RELVER).dylib
55INSTALL_PCNAME= luajit.pc 56INSTALL_PCNAME= luajit.pc
56 57
57INSTALL_STATIC= $(INSTALL_LIB)/$(INSTALL_ANAME) 58INSTALL_STATIC= $(INSTALL_LIB)/$(INSTALL_ANAME)
58INSTALL_DYN= $(INSTALL_LIB)/$(INSTALL_SONAME) 59INSTALL_DYN= $(INSTALL_LIB)/$(INSTALL_SONAME)
59INSTALL_SHORT1= $(INSTALL_LIB)/$(INSTALL_SOSHORT) 60INSTALL_SHORT1= $(INSTALL_LIB)/$(INSTALL_SOSHORT1)
60INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT) 61INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT2)
61INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAME) 62INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAME)
62INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME) 63INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME)
63INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME) 64INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME)
@@ -89,12 +90,17 @@ FILES_JITLIB= bc.lua bcsave.lua dump.lua p.lua v.lua zone.lua \
89 dis_mips.lua dis_mipsel.lua vmdef.lua 90 dis_mips.lua dis_mipsel.lua vmdef.lua
90 91
91ifeq (,$(findstring Windows,$(OS))) 92ifeq (,$(findstring Windows,$(OS)))
92 ifeq (Darwin,$(shell uname -s)) 93 HOST_SYS:= $(shell uname -s)
93 INSTALL_SONAME= $(INSTALL_DYLIBNAME) 94else
94 INSTALL_SHORT1= $(INSTALL_LIB)/$(INSTALL_DYLIBSHORT1) 95 HOST_SYS= Windows
95 INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_DYLIBSHORT2) 96endif
96 LDCONFIG= : 97TARGET_SYS?= $(HOST_SYS)
97 endif 98
99ifeq (Darwin,$(TARGET_SYS))
100 INSTALL_SONAME= $(INSTALL_DYLIBNAME)
101 INSTALL_SOSHORT1= $(INSTALL_DYLIBSHORT1)
102 INSTALL_SOSHORT2= $(INSTALL_DYLIBSHORT2)
103 LDCONFIG= :
98endif 104endif
99 105
100############################################################################## 106##############################################################################
diff --git a/doc/install.html b/doc/install.html
index dba63fd8..9921258e 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -346,9 +346,12 @@ target OS differ, or you'll get assembler or linker errors. E.g. if
346you're compiling on a Windows or OSX host for embedded Linux or Android, 346you're compiling on a Windows or OSX host for embedded Linux or Android,
347you need to add <tt>TARGET_SYS=Linux</tt> to the examples below. For a 347you need to add <tt>TARGET_SYS=Linux</tt> to the examples below. For a
348minimal target OS, you may need to disable the built-in allocator in 348minimal target OS, you may need to disable the built-in allocator in
349<tt>src/Makefile</tt> and use <tt>TARGET_SYS=Other</tt>. The examples 349<tt>src/Makefile</tt> and use <tt>TARGET_SYS=Other</tt>. Don't forget to
350below only show some popular targets &mdash; please check the comments 350specify the same <tt>TARGET_SYS</tt> for the install step, too.
351in <tt>src/Makefile</tt> for more details. 351</p>
352<p>
353The examples below only show some popular targets &mdash; please check
354the comments in <tt>src/Makefile</tt> for more details.
352</p> 355</p>
353<pre class="code"> 356<pre class="code">
354# Cross-compile to a 32 bit binary on a multilib x64 OS 357# Cross-compile to a 32 bit binary on a multilib x64 OS