Skip to content
Snippets Groups Projects
Commit 332771db authored by Andreas Gnau's avatar Andreas Gnau :speech_balloon: Committed by Yalu Zhang
Browse files

Respect LDFLAGS to allow customized link options

Some platform may have its own specific link options, e.g. Broadcom.
parent 6ca306ea
No related branches found
No related tags found
1 merge request!40Makefile: Respect LDFLAGS
Pipeline #141994 passed
...@@ -31,7 +31,7 @@ LIBVOICE: ...@@ -31,7 +31,7 @@ LIBVOICE:
$(MAKE) -C libvoice $(MAKE) -C libvoice
$(VOICEMNGR): LIBVOICE $(OBJS) $(VOICEMNGR): LIBVOICE $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
clean: clean:
rm -f *.o $(VOICEMNGR) rm -f *.o $(VOICEMNGR)
......
...@@ -29,7 +29,7 @@ all: debug $(LIBVOICE) ...@@ -29,7 +29,7 @@ all: debug $(LIBVOICE)
$(CC) $(CFLAGS) -fPIC -c -o $@ $< $(CC) $(CFLAGS) -fPIC -c -o $@ $<
$(LIBVOICE): $(OBJS) $(LIBVOICE): $(OBJS)
$(CC) $(CFLAGS) -shared -o $@ $^ $(LIBS) $(CC) $(CFLAGS) -shared $(LDFLAGS) -o $@ $^ $(LIBS)
clean: clean:
rm -f *.o $(LIBVOICE) rm -f *.o $(LIBVOICE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment