Was being linked with itself. Newer gcc are not amused.
Signed-off-by: Michel Pollet <buserror@gmail.com>
#
${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