Set the sonames of shared libraries to the filename, so we don't end
up with full pathnames embedded in the files.
ldlinux.c32 : ldlinux.o cli.o readconfig.o refstr.o colors.o getadv.o \
adv.o execute.o chainboot.o kernel.o get_key.o \
advwrite.o setadv.o eprintf.o loadhigh.o msg.o
- $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
+ $(LD) $(LDFLAGS) -soname $(@F) -o $@ $^ $(LIBS)
LNXCFLAGS += -D__export='__attribute__((visibility("default")))'
LNXLIBOBJS = get_key.lo
all: libcom32gpl.c32
libcom32gpl.c32 : $(LIBOBJS)
- $(LD) -shared $(LDFLAGS) -o $@ $^
+ $(LD) -shared $(LDFLAGS) -soname $(@F) -o $@ $^
tidy dist clean:
find . \( -name \*.o -o -name .\*.d -o -name \*.tmp \) -print0 | \
libcom32.c32 : $(LIBOBJS)
rm -f $@
- $(LD) -shared $(LDFLAGS) -o $@ $^
+ $(LD) -shared $(LDFLAGS) -soname $(@F) -o $@ $^
libcom32min.a : $(MINLIBOBJS)
rm -f $@
all: libutil_com.c32 libutil_lnx.a
libutil_com.c32: $(LIBOBJS)
- $(LD) $(LDFLAGS) -o $@ $^
+ $(LD) $(LDFLAGS) -soname $(@F) -o $@ $^
libutil_lnx.a: $(LNXLIBOBJS)
rm -f $@