348 |
# we make that a symlink. |
# we make that a symlink. |
349 |
$(libname).so.$(hurd-version): $(patsubst %.o,%_pic.o,$(OBJS)) $(library_deps) |
$(libname).so.$(hurd-version): $(patsubst %.o,%_pic.o,$(OBJS)) $(library_deps) |
350 |
$(CC) -shared -Wl,-soname=$@ -o $@ \ |
$(CC) -shared -Wl,-soname=$@ -o $@ \ |
351 |
$(rpath) $(CFLAGS) $(LDFLAGS) $($(libname).so-LDFLAGS) $^ |
$(rpath) $(CFLAGS) $(LDFLAGS) $($(libname).so-LDFLAGS) \ |
352 |
|
'-Wl,-(' $^ $($(libname).so-LDLIBS) $(LDLIBS) \ |
353 |
|
'-Wl,-)' |
354 |
|
|
355 |
$(libname).so: $(libname).so.$(hurd-version) |
$(libname).so: $(libname).so.$(hurd-version) |
356 |
ln -f -s $< $@ |
ln -f -s $< $@ |
357 |
endif |
endif |
456 |
# Tell make where to find other -l libraries that we use |
# Tell make where to find other -l libraries that we use |
457 |
vpath libutil.% $(libdir)/ |
vpath libutil.% $(libdir)/ |
458 |
|
|
459 |
|
ifneq ($(dir),libstore) |
460 |
|
$(boot-store-types:%=../libstore/libstore_%.a): ../libstore/libstore.so |
461 |
|
endif |
462 |
|
|
463 |
# Default rules to build PIC object files. |
# Default rules to build PIC object files. |
464 |
%_pic.o: %.c |
%_pic.o: %.c |