[syslinux:elflink] elflink: set the sonames of shared libraries
syslinux-bot for H. Peter Anvin
hpa at linux.intel.com
Thu Jan 3 09:33:08 PST 2013
Commit-ID: 3bede445728bfc519f649d69d6e0bcc196ed74de
Gitweb: http://www.syslinux.org/commit/3bede445728bfc519f649d69d6e0bcc196ed74de
Author: H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Thu, 3 Jan 2013 09:29:51 -0800
Committer: H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Thu, 3 Jan 2013 09:29:51 -0800
elflink: set the sonames of shared libraries
Set the sonames of shared libraries to the filename, so we don't end
up with full pathnames embedded in the files.
---
com32/elflink/ldlinux/Makefile | 2 +-
com32/gpllib/Makefile | 2 +-
com32/lib/Makefile | 2 +-
com32/libutil/Makefile | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/com32/elflink/ldlinux/Makefile b/com32/elflink/ldlinux/Makefile
index 93ca127..43ea632 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 92dd20f..053e864 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 84f65c1..7806230 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 93c0c11..fb437dc 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 $@
More information about the Syslinux-commits
mailing list