Aegisub-specific LuaJIT settings
This commit is contained in:
parent
896ede12f3
commit
5c50029074
1 changed files with 11 additions and 9 deletions
20
vendor/luajit/src/Makefile
vendored
20
vendor/luajit/src/Makefile
vendored
|
@ -55,11 +55,11 @@ CCOPT_ppc=
|
||||||
CCOPT_ppcspe=
|
CCOPT_ppcspe=
|
||||||
CCOPT_mips=
|
CCOPT_mips=
|
||||||
#
|
#
|
||||||
CCDEBUG=
|
#CCDEBUG=
|
||||||
# Uncomment the next line to generate debug information:
|
# Uncomment the next line to generate debug information:
|
||||||
#CCDEBUG= -g
|
CCDEBUG= -g
|
||||||
#
|
#
|
||||||
CCWARN= -Wall
|
CCWARN= -Wall -Wno-unused-function
|
||||||
# Uncomment the next line to enable more warnings:
|
# Uncomment the next line to enable more warnings:
|
||||||
#CCWARN+= -Wextra -Wdeclaration-after-statement -Wredundant-decls -Wshadow -Wpointer-arith
|
#CCWARN+= -Wextra -Wdeclaration-after-statement -Wredundant-decls -Wshadow -Wpointer-arith
|
||||||
#
|
#
|
||||||
|
@ -72,10 +72,10 @@ CCWARN= -Wall
|
||||||
# as dynamic mode.
|
# as dynamic mode.
|
||||||
#
|
#
|
||||||
# Mixed mode creates a static + dynamic library and a statically linked luajit.
|
# Mixed mode creates a static + dynamic library and a statically linked luajit.
|
||||||
BUILDMODE= mixed
|
#BUILDMODE= mixed
|
||||||
#
|
#
|
||||||
# Static mode creates a static library and a statically linked luajit.
|
# Static mode creates a static library and a statically linked luajit.
|
||||||
#BUILDMODE= static
|
BUILDMODE= static
|
||||||
#
|
#
|
||||||
# Dynamic mode creates a dynamic library and a dynamically linked luajit.
|
# Dynamic mode creates a dynamic library and a dynamically linked luajit.
|
||||||
# Note: this executable will only run when the library is installed!
|
# Note: this executable will only run when the library is installed!
|
||||||
|
@ -100,7 +100,7 @@ XCFLAGS=
|
||||||
# enabled by default. Some other features that *might* break some existing
|
# enabled by default. Some other features that *might* break some existing
|
||||||
# code (e.g. __pairs or os.execute() return values) can be enabled here.
|
# code (e.g. __pairs or os.execute() return values) can be enabled here.
|
||||||
# Note: this does not provide full compatibility with Lua 5.2 at this time.
|
# Note: this does not provide full compatibility with Lua 5.2 at this time.
|
||||||
#XCFLAGS+= -DLUAJIT_ENABLE_LUA52COMPAT
|
XCFLAGS+= -DLUAJIT_ENABLE_LUA52COMPAT
|
||||||
#
|
#
|
||||||
# Disable the JIT compiler, i.e. turn LuaJIT into a pure interpreter.
|
# Disable the JIT compiler, i.e. turn LuaJIT into a pure interpreter.
|
||||||
#XCFLAGS+= -DLUAJIT_DISABLE_JIT
|
#XCFLAGS+= -DLUAJIT_DISABLE_JIT
|
||||||
|
@ -190,9 +190,11 @@ TARGET_LD= $(CROSS)$(CC)
|
||||||
TARGET_AR= $(CROSS)ar rcus
|
TARGET_AR= $(CROSS)ar rcus
|
||||||
TARGET_STRIP= $(CROSS)strip
|
TARGET_STRIP= $(CROSS)strip
|
||||||
|
|
||||||
TARGET_LIBPATH= $(or $(PREFIX),/usr/local)/$(or $(MULTILIB),lib)
|
TARGET_LIBPATH= $(CURDIR)
|
||||||
|
#TARGET_LIBPATH= $(or $(PREFIX),/usr/local)/$(or $(MULTILIB),lib)
|
||||||
TARGET_SONAME= libluajit-$(ABIVER).so.$(MAJVER)
|
TARGET_SONAME= libluajit-$(ABIVER).so.$(MAJVER)
|
||||||
TARGET_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).dylib
|
TARGET_DYLIBNAME= libluajit-aegisub.so
|
||||||
|
#TARGET_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).dylib
|
||||||
TARGET_DYLIBPATH= $(TARGET_LIBPATH)/$(TARGET_DYLIBNAME)
|
TARGET_DYLIBPATH= $(TARGET_LIBPATH)/$(TARGET_DYLIBNAME)
|
||||||
TARGET_DLLNAME= lua$(NODOTABIVER).dll
|
TARGET_DLLNAME= lua$(NODOTABIVER).dll
|
||||||
TARGET_XSHLDFLAGS= -shared -fPIC -Wl,-soname,$(TARGET_SONAME)
|
TARGET_XSHLDFLAGS= -shared -fPIC -Wl,-soname,$(TARGET_SONAME)
|
||||||
|
@ -473,7 +475,7 @@ LIB_VMDEFP= $(LIB_VMDEF)
|
||||||
|
|
||||||
LUAJIT_O= luajit.o
|
LUAJIT_O= luajit.o
|
||||||
LUAJIT_A= libluajit.a
|
LUAJIT_A= libluajit.a
|
||||||
LUAJIT_SO= libluajit.so
|
LUAJIT_SO= libluajit-aegisub.so
|
||||||
LUAJIT_T= luajit
|
LUAJIT_T= luajit
|
||||||
|
|
||||||
ALL_T= $(LUAJIT_T) $(LUAJIT_A) $(LUAJIT_SO) $(HOST_T)
|
ALL_T= $(LUAJIT_T) $(LUAJIT_A) $(LUAJIT_SO) $(HOST_T)
|
||||||
|
|
Loading…
Reference in a new issue