TP 11 exo1: permit to specify linker libs to all relevant target in the
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 6 Mar 2017 20:37:51 +0000 (21:37 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 6 Mar 2017 20:37:51 +0000 (21:37 +0100)
Makefile

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TP_11/exo1/Makefile

index d287ee24f6754405c474aa6089686fe006cc09ab..f8cfee721cf62243e6263cfb66d819389fb05b80 100644 (file)
@@ -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 ] $@"