Commit 93b1468d25acc10a3409a75a8aaaca22302e0d52
authorMichel Pollet <buserror@gmail.com>
Tue, 14 Oct 2014 17:51:26 +0000 (18:51 +0100)
committerMichel Pollet <buserror@gmail.com>
Tue, 14 Oct 2014 17:51:26 +0000 (18:51 +0100)
Was being linked with itself. Newer gcc are not amused.

Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/Makefile

index fb2ac49484cc54605a422ca279e9962fa64f1bc3..93dfb35149953f2bd6e464e77bbc0871a34a9a5c 100644 (file)
@@ -63,10 +63,10 @@ endif
 #
 ${OBJ}/libsimavr.so.1  :       ${sim_o}
 ifeq ($(V),1)
-       $(CC) -shared -Wl,-soname,libsimavr.so.1 -o $@ $^ $(LDFLAGS)
+       $(CC) -shared -Wl,-soname,libsimavr.so.1 -o $@ $^ ${filter-out -lsimavr, $(LDFLAGS)}
 else
        @echo SHARED $@
-       @$(CC) -shared -Wl,-soname,libsimavr.so.1 -o $@ $^ $(LDFLAGS)
+       @$(CC) -shared -Wl,-soname,libsimavr.so.1 -o $@ $^ ${filter-out -lsimavr, $(LDFLAGS)}
 endif
 
 ${OBJ}/libsimavr.so            : ${OBJ}/libsimavr.so.1