summaryrefslogtreecommitdiff
path: root/libfdt
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-04-26 20:45:27 +1000
committerJon Loeliger <jdl@jdl.com>2011-04-29 08:40:31 -0500
commit99c1db78dcbe31cb92d6d3af3a162ce6b014f6f0 (patch)
tree53e590318005d77937608d6d2dfda8925c809b22 /libfdt
parent37c0b6a0916c31a5eae0a9ddfcc5d0b8fb4569c6 (diff)
downloaddtc-99c1db78dcbe31cb92d6d3af3a162ce6b014f6f0.tar.gz
libfdt: include version number in soname
The libfdt shared library is only installed by its unversioned name. Including it properly in a distribution requires installation of both the versioned name (used in the binary-only package) and the unversioned name (used in the development package). The latter is just a symbolic link, so you need to change the soname in turn to include the version. While at it, use Makefile variables to shorten some lines and avoid cut-and-paste typos; and clean up remnants of when shared libraries were not supported on Darwin. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt')
-rw-r--r--libfdt/Makefile.libfdt1
1 files changed, 1 insertions, 0 deletions
diff --git a/libfdt/Makefile.libfdt b/libfdt/Makefile.libfdt
index 341c803..d55a6f8 100644
--- a/libfdt/Makefile.libfdt
+++ b/libfdt/Makefile.libfdt
@@ -3,6 +3,7 @@
# This is not a complete Makefile of itself. Instead, it is designed to
# be easily embeddable into other systems of Makefiles.
#
+LIBFDT_soname = libfdt.$(SHAREDLIB_EXT).1
LIBFDT_INCLUDES = fdt.h libfdt.h
LIBFDT_VERSION = version.lds
LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c