diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2013-01-03 09:29:51 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-01-03 09:29:51 -0800 |
commit | 3bede445728bfc519f649d69d6e0bcc196ed74de (patch) | |
tree | 5148c62933f5403294a0ddabef32f598838368a5 | |
parent | ddb10ce99c327888ade4d2ba3e4c50ad12aaa059 (diff) | |
download | syslinux-3bede445728bfc519f649d69d6e0bcc196ed74de.tar.gz syslinux-3bede445728bfc519f649d69d6e0bcc196ed74de.tar.xz syslinux-3bede445728bfc519f649d69d6e0bcc196ed74de.zip |
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.
-rw-r--r-- | com32/elflink/ldlinux/Makefile | 2 | ||||
-rw-r--r-- | com32/gpllib/Makefile | 2 | ||||
-rw-r--r-- | com32/lib/Makefile | 2 | ||||
-rw-r--r-- | com32/libutil/Makefile | 2 |
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 $@ |