54 lines
1.5 KiB
Diff
54 lines
1.5 KiB
Diff
--- LuaJIT-old/src/Makefile 2021-03-11 01:19:04.000000000 +0600
|
|
+++ LuaJIT-new/src/Makefile 2021-07-05 09:46:42.681252928 +0600
|
|
@@ -27,7 +27,7 @@
|
|
DEFAULT_CC = gcc
|
|
#
|
|
# LuaJIT builds as a native 32 or 64 bit binary by default.
|
|
-CC= $(DEFAULT_CC)
|
|
+CC?= $(DEFAULT_CC)
|
|
#
|
|
# Use this if you want to force a 32 bit build on a 64 bit multilib OS.
|
|
#CC= $(DEFAULT_CC) -m32
|
|
@@ -192,7 +192,7 @@
|
|
CCOPTIONS= $(CCDEBUG) $(ASOPTIONS)
|
|
LDOPTIONS= $(CCDEBUG) $(LDFLAGS)
|
|
|
|
-HOST_CC= $(CC)
|
|
+HOST_CC?= $(CC)
|
|
HOST_RM?= rm -f
|
|
# If left blank, minilua is built and used. You can supply an installed
|
|
# copy of (plain) Lua 5.1 or 5.2, plus Lua BitOp. E.g. with: HOST_LUA=lua
|
|
@@ -205,17 +205,17 @@
|
|
HOST_ALDFLAGS= $(LDOPTIONS) $(HOST_XLDFLAGS) $(HOST_LDFLAGS)
|
|
HOST_ALIBS= $(HOST_XLIBS) $(LIBS) $(HOST_LIBS)
|
|
|
|
-STATIC_CC = $(CROSS)$(CC)
|
|
-DYNAMIC_CC = $(CROSS)$(CC) -fPIC
|
|
+STATIC_CC = $(CC)
|
|
+DYNAMIC_CC = $(CC) -fPIC
|
|
TARGET_CC= $(STATIC_CC)
|
|
TARGET_STCC= $(STATIC_CC)
|
|
TARGET_DYNCC= $(DYNAMIC_CC)
|
|
-TARGET_LD= $(CROSS)$(CC)
|
|
-TARGET_AR= $(CROSS)ar rcus 2>/dev/null
|
|
-TARGET_STRIP= $(CROSS)strip
|
|
+TARGET_LD= $(CC)
|
|
+TARGET_AR= $(AR) rcus 2>/dev/null
|
|
+TARGET_STRIP= $(STRIP)
|
|
|
|
TARGET_LIBPATH= $(or $(PREFIX),/usr/local)/$(or $(MULTILIB),lib)
|
|
-TARGET_SONAME= libluajit-$(ABIVER).so.$(MAJVER)
|
|
+TARGET_SONAME= libluajit-$(ABIVER).so
|
|
TARGET_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).dylib
|
|
TARGET_DYLIBPATH= $(TARGET_LIBPATH)/$(TARGET_DYLIBNAME)
|
|
TARGET_DLLNAME= lua$(NODOTABIVER).dll
|
|
@@ -589,7 +589,7 @@
|
|
endif
|
|
endif
|
|
|
|
-Q= @
|
|
+Q=
|
|
E= @echo
|
|
#Q=
|
|
#E= @:
|