aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/elflink/ldlinux/Makefile2
-rw-r--r--com32/gpllib/Makefile2
-rw-r--r--com32/lib/Makefile2
-rw-r--r--com32/libutil/Makefile2
4 files changed, 4 insertions, 4 deletions
diff --git a/com32/elflink/ldlinux/Makefile b/com32/elflink/ldlinux/Makefile
index 93ca127d..43ea632b 100644
--- a/com32/elflink/ldlinux/Makefile
+++ b/com32/elflink/ldlinux/Makefile
@@ -22,7 +22,7 @@ all: ldlinux.c32 ldlinux_lnx.a
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
diff --git a/com32/gpllib/Makefile b/com32/gpllib/Makefile
index 92dd20f2..053e8642 100644
--- a/com32/gpllib/Makefile
+++ b/com32/gpllib/Makefile
@@ -22,7 +22,7 @@ COM32DIR = $(AUXDIR)/com32
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 | \
diff --git a/com32/lib/Makefile b/com32/lib/Makefile
index 84f65c1f..7806230b 100644
--- a/com32/lib/Makefile
+++ b/com32/lib/Makefile
@@ -216,7 +216,7 @@ all: libcom32.c32 libcom32min.a libcom32core.a
libcom32.c32 : $(LIBOBJS)
rm -f $@
- $(LD) -shared $(LDFLAGS) -o $@ $^
+ $(LD) -shared $(LDFLAGS) -soname $(@F) -o $@ $^
libcom32min.a : $(MINLIBOBJS)
rm -f $@
diff --git a/com32/libutil/Makefile b/com32/libutil/Makefile
index 93c0c11c..fb437dc7 100644
--- a/com32/libutil/Makefile
+++ b/com32/libutil/Makefile
@@ -42,7 +42,7 @@ LNXLIBOBJS = $(patsubst %.o,%.lo,$(LIBOBJS))
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 $@