openbsd-ports/devel/dconf/patches/patch-dbus-1_Makefile_in
ajacoutot 8c78974c57 So, there is this new unexplained trend going on in ports which is
to remove "-Wl,-soname" because (as I was told) "we don't do that"...
Ok well, this break things, so put my soname back.
2012-09-29 19:27:33 +00:00

50 lines
2.3 KiB
Plaintext

$OpenBSD: patch-dbus-1_Makefile_in,v 1.8 2012/09/29 19:27:33 ajacoutot Exp $
--- dbus-1/Makefile.in.orig Thu Sep 27 09:27:23 2012
+++ dbus-1/Makefile.in Thu Sep 27 09:29:28 2012
@@ -55,7 +55,7 @@ POST_UNINSTALL = :
DIST_COMMON = $(dconf_dbus_1include_HEADERS) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/dconf-dbus-1.pc.in \
$(top_srcdir)/Makefile.gtester
-shlib_PROGRAMS = libdconf-dbus-1.so.0.0.0$(EXEEXT)
+shlib_PROGRAMS = libdconf-dbus-1.so.${LIBdconf-dbus-1_VERSION}$(EXEEXT)
subdir = dbus-1
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
@@ -339,9 +339,9 @@ libdconf_dbus_1_so_0_0_0_LDADD = \
$(dbus_LIBS) \
$(glib_LIBS)
-libdconf_dbus_1_so_0_0_0_LDFLAGS = -shared -Wl,-soname=libdconf-dbus-1.so.0
+libdconf_dbus_1_so_0_0_0_LDFLAGS = -shared -Wl,-soname=libdconf-dbus-1.so.${LIBdconf_VERSION}
libdconf_dbus_1_so_0_0_0_SOURCES = dconf-dbus-1.c
-nodist_noinst_DATA = libdconf-dbus-1.so libdconf-dbus-1.so.0
+nodist_noinst_DATA =
CLEANFILES = libdconf-dbus-1.so.0 libdconf-dbus-1.so
all: all-am
@@ -431,8 +431,8 @@ uninstall-shlibPROGRAMS:
clean-shlibPROGRAMS:
-test -z "$(shlib_PROGRAMS)" || rm -f $(shlib_PROGRAMS)
-libdconf-dbus-1.so.0.0.0$(EXEEXT): $(libdconf_dbus_1_so_0_0_0_OBJECTS) $(libdconf_dbus_1_so_0_0_0_DEPENDENCIES) $(EXTRA_libdconf_dbus_1_so_0_0_0_DEPENDENCIES)
- @rm -f libdconf-dbus-1.so.0.0.0$(EXEEXT)
+libdconf-dbus-1.so.${LIBdconf-dbus-1_VERSION}$(EXEEXT): $(libdconf_dbus_1_so_0_0_0_OBJECTS) $(libdconf_dbus_1_so_0_0_0_DEPENDENCIES) $(EXTRA_libdconf_dbus_1_so_0_0_0_DEPENDENCIES)
+ @rm -f libdconf-dbus-1.so.${LIBdconf-dbus-1_VERSION}$(EXEEXT)
$(AM_V_CCLD)$(libdconf_dbus_1_so_0_0_0_LINK) $(libdconf_dbus_1_so_0_0_0_OBJECTS) $(libdconf_dbus_1_so_0_0_0_LDADD) $(LIBS)
mostlyclean-compile:
@@ -820,13 +820,6 @@ test-report perf-report full-report: ${TEST_PROGS}
# run tests in cwd as part of make check
check-local: test-nonrecursive
-
-libdconf-dbus-1.so.0 libdconf-dbus-1.so: libdconf-dbus-1.so.0.0.0
- $(AM_V_GEN) ln -fs libdconf-dbus-1.so.0.0.0 $@
-
-install-data-hook:
- ln -fs libdconf-dbus-1.so.0.0.0 $(DESTDIR)$(shlibdir)/libdconf-dbus-1.so.0
- ln -fs libdconf-dbus-1.so.0.0.0 $(DESTDIR)$(shlibdir)/libdconf-dbus-1.so
uninstall-hook:
rm -f $(DESTDIR)$(shlibdir)/libdconf-dbus-1.so.0