aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2019-12-08 19:24:47 +0100
committerMike Pall <mike>2019-12-08 19:24:47 +0100
commit05898a8824f119d586e5fb079f1e66d8cac38160 (patch)
tree615a53149d3c0c4a1de3feb2e63e06bb8761b059
parent84ee8091f66b674da74e6f81bcb73f1d9fb10458 (diff)
parent44382e833a9334c19e47e64e8078a322026e094d (diff)
downloadluajit-05898a8824f119d586e5fb079f1e66d8cac38160.tar.gz
luajit-05898a8824f119d586e5fb079f1e66d8cac38160.tar.bz2
luajit-05898a8824f119d586e5fb079f1e66d8cac38160.zip
Merge branch 'master' into v2.1
-rw-r--r--doc/install.html4
-rw-r--r--src/Makefile7
-rw-r--r--src/lj_err.c5
3 files changed, 6 insertions, 10 deletions
diff --git a/doc/install.html b/doc/install.html
index da350b9c..49d6e9ed 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -222,8 +222,8 @@ You can add an extra prefix to the search paths by appending the
222make PREFIX=/home/myself/lj2 222make PREFIX=/home/myself/lj2
223</pre> 223</pre>
224<p> 224<p>
225Note for OSX: if the <tt>MACOSX_DEPLOYMENT_TARGET</tt> environment 225Note for OSX: you must set the <tt>MACOSX_DEPLOYMENT_TARGET</tt>
226variable is not set, then it's forced to <tt>10.4</tt>. 226environment variable to a value supported by your toolchain.
227</p> 227</p>
228<h3>Installing LuaJIT</h3> 228<h3>Installing LuaJIT</h3>
229<p> 229<p>
diff --git a/src/Makefile b/src/Makefile
index d22eb732..71c284e2 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -158,7 +158,6 @@ XCFLAGS=
158 158
159ifeq (Windows,$(findstring Windows,$(OS))$(MSYSTEM)$(TERM)) 159ifeq (Windows,$(findstring Windows,$(OS))$(MSYSTEM)$(TERM))
160 HOST_SYS= Windows 160 HOST_SYS= Windows
161 HOST_RM= del
162else 161else
163 HOST_SYS:= $(shell uname -s) 162 HOST_SYS:= $(shell uname -s)
164 ifneq (,$(findstring MINGW,$(HOST_SYS))) 163 ifneq (,$(findstring MINGW,$(HOST_SYS)))
@@ -221,6 +220,7 @@ TARGET_SONAME= libluajit-$(ABIVER).so.$(MAJVER)
221TARGET_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).dylib 220TARGET_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).dylib
222TARGET_DYLIBPATH= $(TARGET_LIBPATH)/$(TARGET_DYLIBNAME) 221TARGET_DYLIBPATH= $(TARGET_LIBPATH)/$(TARGET_DYLIBNAME)
223TARGET_DLLNAME= lua$(NODOTABIVER).dll 222TARGET_DLLNAME= lua$(NODOTABIVER).dll
223TARGET_DLLDOTANAME= libluajit-$(ABIVER).dll.a
224TARGET_XSHLDFLAGS= -shared -fPIC -Wl,-soname,$(TARGET_SONAME) 224TARGET_XSHLDFLAGS= -shared -fPIC -Wl,-soname,$(TARGET_SONAME)
225TARGET_DYNXLDOPTS= 225TARGET_DYNXLDOPTS=
226 226
@@ -309,8 +309,9 @@ endif
309TARGET_SYS?= $(HOST_SYS) 309TARGET_SYS?= $(HOST_SYS)
310ifeq (Windows,$(TARGET_SYS)) 310ifeq (Windows,$(TARGET_SYS))
311 TARGET_STRIP+= --strip-unneeded 311 TARGET_STRIP+= --strip-unneeded
312 TARGET_XSHLDFLAGS= -shared 312 TARGET_XSHLDFLAGS= -shared -Wl,--out-implib,$(TARGET_DLLDOTANAME)
313 TARGET_DYNXLDOPTS= 313 TARGET_DYNXLDOPTS=
314 HOST_RM= del
314else 315else
315 TARGET_AR+= 2>/dev/null 316 TARGET_AR+= 2>/dev/null
316ifeq (,$(shell $(TARGET_CC) -o /dev/null -c -x c /dev/null -fno-stack-protector 2>/dev/null || echo 1)) 317ifeq (,$(shell $(TARGET_CC) -o /dev/null -c -x c /dev/null -fno-stack-protector 2>/dev/null || echo 1))
@@ -318,7 +319,7 @@ ifeq (,$(shell $(TARGET_CC) -o /dev/null -c -x c /dev/null -fno-stack-protector
318endif 319endif
319ifeq (Darwin,$(TARGET_SYS)) 320ifeq (Darwin,$(TARGET_SYS))
320 ifeq (,$(MACOSX_DEPLOYMENT_TARGET)) 321 ifeq (,$(MACOSX_DEPLOYMENT_TARGET))
321 export MACOSX_DEPLOYMENT_TARGET=10.4 322 $(error missing: export MACOSX_DEPLOYMENT_TARGET=XX.YY)
322 endif 323 endif
323 TARGET_STRIP+= -x 324 TARGET_STRIP+= -x
324 TARGET_XSHLDFLAGS= -dynamiclib -single_module -undefined dynamic_lookup -fPIC 325 TARGET_XSHLDFLAGS= -dynamiclib -single_module -undefined dynamic_lookup -fPIC
diff --git a/src/lj_err.c b/src/lj_err.c
index abf176e5..83118551 100644
--- a/src/lj_err.c
+++ b/src/lj_err.c
@@ -287,12 +287,7 @@ LJ_FUNCA int lj_err_unwind_dwarf(int version, int actions,
287} 287}
288 288
289#if LJ_UNWIND_EXT 289#if LJ_UNWIND_EXT
290#if LJ_TARGET_OSX || defined(__OpenBSD__)
291/* Sorry, no thread safety for OSX. Complain to Apple, not me. */
292static _Unwind_Exception static_uex;
293#else
294static __thread _Unwind_Exception static_uex; 290static __thread _Unwind_Exception static_uex;
295#endif
296 291
297/* Raise DWARF2 exception. */ 292/* Raise DWARF2 exception. */
298static void err_raise_ext(int errcode) 293static void err_raise_ext(int errcode)