History

Allow libtcc1-usegcc in lib/Makefile

herman ten brugge committed 3 years ago

Commit bf928f31 parent be8cded1 file · +3 −1Browse files

Unified · Split

lib/Makefile+3−1
@@ -14,6 +14,7 @@ XAR = $(XTCC) -ar · 13 unmodified lines
14XFLAGS-unx = -B$(TOPSRC)14XFLAGS-unx = -B$(TOPSRC)
15XFLAGS-win = -B$(TOPSRC)/win32 -I$(TOPSRC)/include15XFLAGS-win = -B$(TOPSRC)/win32 -I$(TOPSRC)/include
16XFLAGS = $(XFLAGS$(XCFG)) -I$(TOP)16XFLAGS = $(XFLAGS$(XCFG)) -I$(TOP)
17BFLAGS = -bt
17XCFG = $(or $(findstring -win,$T),-unx)18XCFG = $(or $(findstring -win,$T),-unx)
18S = $(if $(findstring yes,$(SILENT)),@$(info * $@))19S = $(if $(findstring yes,$(SILENT)),@$(info * $@))
19 20
@@ -28,6 +29,7 @@ ifeq "$($(T)-libtcc1-usegcc)" "yes" · 8 unmodified lines
28 XCC = $(CC)29 XCC = $(CC)
29 XAR = $(AR)30 XAR = $(AR)
30 XFLAGS = $(CFLAGS) -fPIC -gdwarf -fno-omit-frame-pointer -Wno-unused-function -Wno-unused-variable31 XFLAGS = $(CFLAGS) -fPIC -gdwarf -fno-omit-frame-pointer -Wno-unused-function -Wno-unused-variable
32 BFLAGS = -g
31endif33endif
32 34
33ifneq ($(CONFIG_backtrace),no)35ifneq ($(CONFIG_backtrace),no)
@@ -84,7 +86,7 @@ $(X)%.o : %.S · 50 unmodified lines
84$(TOP)/%.o : %.c86$(TOP)/%.o : %.c
85 $S$(XCC) -c $< -o $@ $(XFLAGS)87 $S$(XCC) -c $< -o $@ $(XFLAGS)
86 88
87$(TOP)/bcheck.o : XFLAGS += -bt $(if $(CONFIG_musl),-DTCC_MUSL)89$(TOP)/bcheck.o : XFLAGS += $(BFLAGS) $(if $(CONFIG_musl),-DTCC_MUSL)
88$(TOP)/bt-exe.o : $(TOP)/tccrun.c90$(TOP)/bt-exe.o : $(TOP)/tccrun.c
89 91
90$(X)crt1w.o : crt1.c92$(X)crt1w.o : crt1.c

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t