--- Make.rules.orig 2014-10-15 13:48:49 UTC +++ Make.rules @@ -2,10 +2,10 @@ $(AR) -cvqs $@ $^ % : %.o - $(CCLD) $(ccldflags) -o $@ $^ $(foreach lib,$(LIBS),-l$(lib)) + $(CCLD) $(ccldflags) -o $@ $^ $(LIBS) %.so.$(SONAME_VERSION) : - $(CCLD) $(cflags) -Wl,-soname,$(SONAME) $(ccldflags) $(LIBFLAGS) $^ -o $@ $(foreach lib,$(LIBS),-l$(lib)) + $(CCLD) $(cflags) -Wl,-soname,$(SONAME) $(ccldflags) $(LIBFLAGS) $^ -o $@ $(LIBS) %.so : %.so.$(SONAME_VERSION) ln -sf $^ $@