mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-20 05:53:26 +00:00
static build
This commit is contained in:
parent
5e3e7a764d
commit
980a9d98ed
@ -35,7 +35,7 @@ CC= $(DEFAULT_CC)
|
|||||||
# to slow down the C part by not omitting it. Debugging, tracebacks and
|
# to slow down the C part by not omitting it. Debugging, tracebacks and
|
||||||
# unwinding are not affected -- the assembler part has frame unwind
|
# unwinding are not affected -- the assembler part has frame unwind
|
||||||
# information and GCC emits it where needed (x64) or with -g (see CCDEBUG).
|
# information and GCC emits it where needed (x64) or with -g (see CCDEBUG).
|
||||||
CCOPT= -O2 -fomit-frame-pointer -g -D_FORTIFY_SOURCE=3 -Wstack-protector -fstack-protector-strong -fstack-clash-protection -pie -fPIE -Wl,-z,rel -Wl,dynamicbase -Wl,nxcompat -fvtable-verify=std
|
CCOPT= -static -O2 -fomit-frame-pointer -g -D_FORTIFY_SOURCE=3 -Wstack-protector -fstack-protector-strong -fstack-clash-protection -pie -fPIE -Wl,-z,rel -Wl,dynamicbase -Wl,nxcompat -fvtable-verify=std
|
||||||
# Use this if you want to generate a smaller binary (but it's slower):
|
# Use this if you want to generate a smaller binary (but it's slower):
|
||||||
#CCOPT= -Os -fomit-frame-pointer
|
#CCOPT= -Os -fomit-frame-pointer
|
||||||
# Note: it's no longer recommended to use -O3 with GCC 4.x.
|
# Note: it's no longer recommended to use -O3 with GCC 4.x.
|
||||||
@ -189,7 +189,7 @@ endif
|
|||||||
|
|
||||||
ASOPTIONS= $(CCOPT) $(CCWARN) $(XCFLAGS) $(CFLAGS)
|
ASOPTIONS= $(CCOPT) $(CCWARN) $(XCFLAGS) $(CFLAGS)
|
||||||
CCOPTIONS= $(CCDEBUG) $(ASOPTIONS)
|
CCOPTIONS= $(CCDEBUG) $(ASOPTIONS)
|
||||||
LDOPTIONS= $(CCDEBUG) $(LDFLAGS)
|
LDOPTIONS= $(CCDEBUG) $(LDFLAGS) -static
|
||||||
|
|
||||||
HOST_CC= $(CC)
|
HOST_CC= $(CC)
|
||||||
HOST_RM?= rm -f
|
HOST_RM?= rm -f
|
||||||
|
Loading…
Reference in New Issue
Block a user