From 0ea1a3833310b7e9216272148e7ec3d11ed7c22b Mon Sep 17 00:00:00 2001 From: John Regan Date: Thu, 10 Sep 2015 09:47:13 -0400 Subject: [PATCH] libdwarf: add soname to package --- srcpkgs/libdwarf/patches/add-soname.patch | 13 +++++++++++++ srcpkgs/libdwarf/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libdwarf/patches/add-soname.patch diff --git a/srcpkgs/libdwarf/patches/add-soname.patch b/srcpkgs/libdwarf/patches/add-soname.patch new file mode 100644 index 00000000000..080f1e449f3 --- /dev/null +++ b/srcpkgs/libdwarf/patches/add-soname.patch @@ -0,0 +1,13 @@ +diff --git libdwarf/Makefile.in libdwarf/Makefile.in +index 28c62a9..da69093 100644 +--- libdwarf/Makefile.in ++++ libdwarf/Makefile.in +@@ -122,7 +122,7 @@ libdwarf.a: dwarf_names.h dwarf_names.c $(OBJS) dwarf_names.o + $(AR) $(ARFLAGS) $@ $(OBJS) dwarf_names.o > ar-output-temp + + libdwarf.so: dwarf_names.h dwarf_names.c $(OBJS) dwarf_names.o +- $(CC) $(CFLAGS) -shared $(OBJS) dwarf_names.o -o $@ ++ $(CC) $(CFLAGS) -shared $(OBJS) dwarf_names.o -Wl,-soname,$@ -o $@ + + none: + echo "do nothing " $@ diff --git a/srcpkgs/libdwarf/template b/srcpkgs/libdwarf/template index 033c233a991..2e0bc64724e 100644 --- a/srcpkgs/libdwarf/template +++ b/srcpkgs/libdwarf/template @@ -1,7 +1,7 @@ # Template build file for 'libdwarf' pkgname=libdwarf version=20150507 -revision=1 +revision=2 build_style=configure configure_args="--prefix=/usr --enable-shared" short_desc="DWARF Debugging Information Format Library"