diff -u gc-orig/Makefile gc/Makefile --- gc-orig/Makefile Thu Mar 25 17:41:43 1999 +++ gc/Makefile Fri May 14 15:41:31 1999 @@ -250,10 +250,14 @@ ln libirixgc.so libgc.so # Linux shared library version of the collector -liblinuxgc.so: $(OBJS) dyn_load.o - gcc -shared -o liblinuxgc.so $(OBJS) dyn_load.o -lo - ln liblinuxgc.so libgc.so - +libgc.so.$(SOVERSION): libgc.so.$(LIBVERSION) + ln -s $< $@ +libgc.so: libgc.so.$(SOVERSION) + ln -s $< $@ +libgc.so.$(LIBVERSION): $(OBJS) $(CORD_OBJS) gc_cpp.o dyn_load.o + $(CC) -shared -Wl,-soname,libgc.so.$(SOVERSION) -o $@ \ + $(OBJS) $(CORD_OBJS) gc_cpp.o dyn_load.o + # Alternative Linux rule. This is preferable, but is likely to break the # Makefile for some non-linux platforms. # LIBOBJS= $(patsubst %.o, %.lo, $(OBJS))