History

Makefile: respect LDFLAGS (set via --extra-ldflags=)

Sergei Trofimovich committed 15 years ago

Commit 28883181 parent 0ed7ba31 file · +2 −2Browse files

Unified · Split

Makefile+2−2
@@ -154,11 +154,11 @@ all: $(PROGS) $(TCCLIBS) $(TCCDOCS) · 153 unmodified lines
154154
155155 # Host Tiny C Compiler
156156 tcc$(EXESUF): tcc.o $(LIBTCC)
157− $(CC) -o $@ $^ $(LIBS) $(LINK_LIBTCC)
157+ $(CC) -o $@ $^ $(LIBS) $(LDFLAGS) $(LINK_LIBTCC)
158158
159159 # Cross Tiny C Compilers
160160 %-tcc$(EXESUF):
161− $(CC) -o $@ tcc.c $(DEFINES) $(CFLAGS) $(LIBS)
161+ $(CC) -o $@ tcc.c $(DEFINES) $(CFLAGS) $(LIBS) $(LDFLAGS)
162162
163163 $(I386_CROSS): DEFINES = -DTCC_TARGET_I386 -DCONFIG_TCCDIR="\"$(tccdir)/i386\""
164164 $(X64_CROSS): DEFINES = -DTCC_TARGET_X86_64

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