From: Jérôme Benoit Date: Mon, 6 Mar 2017 20:37:51 +0000 (+0100) Subject: TP 11 exo1: permit to specify linker libs to all relevant target in the X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=bd2571900abf50262873d38c1e31359bed0da38c;p=TD_C.git TP 11 exo1: permit to specify linker libs to all relevant target in the Makefile Signed-off-by: Jérôme Benoit --- diff --git a/TP_11/exo1/Makefile b/TP_11/exo1/Makefile index d287ee2..f8cfee7 100644 --- a/TP_11/exo1/Makefile +++ b/TP_11/exo1/Makefile @@ -64,7 +64,7 @@ $(LIBRARY_NAME).a: $(OBJSLIB) $(LIBRARY_NAME).so: $(OBJSLIB) @echo "[LD ShO] $@" - @$(LD) $(CFLAGS) $(LIBLDFLAGS) $^ -o $@ + @$(LD) $(CFLAGS) $(LIBLDFLAGS) $^ $(LDLIBS) -o $@ $(BINARY_NAME): $(OBJS) @echo "[LD ] $@"