Don't build libtcc1 with -fstack-protector-strong
Prevent libtcc1.a to be compiled with -fstack-protector-strong, so that linking with tcc doesn't fail because symbol '__stack_chk_fail_local' is not present in libtcc1.a. This is useful only if the CFLAGS passed from the main Makefile contain this flag.
This commit is contained in:
@ -54,6 +54,10 @@ WIN64_O = $(X86_64_O) crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o
|
|||||||
# into shared libraries
|
# into shared libraries
|
||||||
PICFLAGS = -fPIC
|
PICFLAGS = -fPIC
|
||||||
|
|
||||||
|
# don't compile with -fstack-protector-strong, TCC doesn't handle it
|
||||||
|
# correctly
|
||||||
|
CFLAGS := $(filter-out -fstack-protector-strong,$(CFLAGS))
|
||||||
|
|
||||||
ifeq "$(TARGET)" "i386-win32"
|
ifeq "$(TARGET)" "i386-win32"
|
||||||
OBJ = $(addprefix $(DIR)/,$(WIN32_O))
|
OBJ = $(addprefix $(DIR)/,$(WIN32_O))
|
||||||
TGT = -DTCC_TARGET_I386 -DTCC_TARGET_PE
|
TGT = -DTCC_TARGET_I386 -DTCC_TARGET_PE
|
||||||
|
|||||||
Reference in New Issue
Block a user