diff options
| author | Mike Pall <mike> | 2016-03-22 22:22:51 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2016-03-22 22:22:51 +0100 |
| commit | 713e34054f6206cb9d453a0924ffd7a302166bdd (patch) | |
| tree | 7b80d8ff413435af689a8d8d37353ab4bd3dd65d | |
| parent | cf3e01e1363659e4c2688d42598d0982e43acee9 (diff) | |
| parent | 7e05355a08255f508d334eded96095e0bde06e2e (diff) | |
| download | luajit-713e34054f6206cb9d453a0924ffd7a302166bdd.tar.gz luajit-713e34054f6206cb9d453a0924ffd7a302166bdd.tar.bz2 luajit-713e34054f6206cb9d453a0924ffd7a302166bdd.zip | |
Merge branch 'master' into v2.1
| -rw-r--r-- | Makefile | 28 | ||||
| -rw-r--r-- | doc/install.html | 9 |
2 files changed, 23 insertions, 14 deletions
| @@ -47,17 +47,18 @@ INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig | |||
| 47 | INSTALL_TNAME= luajit-$(VERSION) | 47 | INSTALL_TNAME= luajit-$(VERSION) |
| 48 | INSTALL_TSYMNAME= luajit | 48 | INSTALL_TSYMNAME= luajit |
| 49 | INSTALL_ANAME= libluajit-$(ABIVER).a | 49 | INSTALL_ANAME= libluajit-$(ABIVER).a |
| 50 | INSTALL_SONAME= libluajit-$(ABIVER).so.$(MAJVER).$(MINVER).$(RELVER) | 50 | INSTALL_SOSHORT1= libluajit-$(ABIVER).so |
| 51 | INSTALL_SOSHORT= libluajit-$(ABIVER).so | 51 | INSTALL_SOSHORT2= libluajit-$(ABIVER).so.$(MAJVER) |
| 52 | INSTALL_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).$(MINVER).$(RELVER).dylib | 52 | INSTALL_SONAME= $(INSTALL_SOSHORT2).$(MINVER).$(RELVER) |
| 53 | INSTALL_DYLIBSHORT1= libluajit-$(ABIVER).dylib | 53 | INSTALL_DYLIBSHORT1= libluajit-$(ABIVER).dylib |
| 54 | INSTALL_DYLIBSHORT2= libluajit-$(ABIVER).$(MAJVER).dylib | 54 | INSTALL_DYLIBSHORT2= libluajit-$(ABIVER).$(MAJVER).dylib |
| 55 | INSTALL_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).$(MINVER).$(RELVER).dylib | ||
| 55 | INSTALL_PCNAME= luajit.pc | 56 | INSTALL_PCNAME= luajit.pc |
| 56 | 57 | ||
| 57 | INSTALL_STATIC= $(INSTALL_LIB)/$(INSTALL_ANAME) | 58 | INSTALL_STATIC= $(INSTALL_LIB)/$(INSTALL_ANAME) |
| 58 | INSTALL_DYN= $(INSTALL_LIB)/$(INSTALL_SONAME) | 59 | INSTALL_DYN= $(INSTALL_LIB)/$(INSTALL_SONAME) |
| 59 | INSTALL_SHORT1= $(INSTALL_LIB)/$(INSTALL_SOSHORT) | 60 | INSTALL_SHORT1= $(INSTALL_LIB)/$(INSTALL_SOSHORT1) |
| 60 | INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT) | 61 | INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT2) |
| 61 | INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAME) | 62 | INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAME) |
| 62 | INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME) | 63 | INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME) |
| 63 | INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME) | 64 | INSTALL_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 | ||
| 91 | ifeq (,$(findstring Windows,$(OS))) | 92 | ifeq (,$(findstring Windows,$(OS))) |
| 92 | ifeq (Darwin,$(shell uname -s)) | 93 | HOST_SYS:= $(shell uname -s) |
| 93 | INSTALL_SONAME= $(INSTALL_DYLIBNAME) | 94 | else |
| 94 | INSTALL_SHORT1= $(INSTALL_LIB)/$(INSTALL_DYLIBSHORT1) | 95 | HOST_SYS= Windows |
| 95 | INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_DYLIBSHORT2) | 96 | endif |
| 96 | LDCONFIG= : | 97 | TARGET_SYS?= $(HOST_SYS) |
| 97 | endif | 98 | |
| 99 | ifeq (Darwin,$(TARGET_SYS)) | ||
| 100 | INSTALL_SONAME= $(INSTALL_DYLIBNAME) | ||
| 101 | INSTALL_SOSHORT1= $(INSTALL_DYLIBSHORT1) | ||
| 102 | INSTALL_SOSHORT2= $(INSTALL_DYLIBSHORT2) | ||
| 103 | LDCONFIG= : | ||
| 98 | endif | 104 | endif |
| 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 | |||
| 346 | you're compiling on a Windows or OSX host for embedded Linux or Android, | 346 | you're compiling on a Windows or OSX host for embedded Linux or Android, |
| 347 | you need to add <tt>TARGET_SYS=Linux</tt> to the examples below. For a | 347 | you need to add <tt>TARGET_SYS=Linux</tt> to the examples below. For a |
| 348 | minimal target OS, you may need to disable the built-in allocator in | 348 | minimal 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 |
| 350 | below only show some popular targets — please check the comments | 350 | specify the same <tt>TARGET_SYS</tt> for the install step, too. |
| 351 | in <tt>src/Makefile</tt> for more details. | 351 | </p> |
| 352 | <p> | ||
| 353 | The examples below only show some popular targets — please check | ||
| 354 | the 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 |
