/net-misc/networkmanager-openvpn/files/networkmanager-openvpn-1.2.4-underlinking-1.patch

https://gitlab.com/kogaion/portage · Patch · 46 lines · 38 code · 8 blank · 0 comment · 0 complexity · 51887929c29ccf540284465520ad38e1 MD5 · raw file

  1. From 220b38717f8d0fc16c8b9d68cfd6e5b5751e4669 Mon Sep 17 00:00:00 2001
  2. From: Dennis Schridde <devurandom@gmx.net>
  3. Date: Mon, 15 Aug 2016 16:36:57 +0200
  4. Subject: build: fix linking libnm-vpn-plugin-openvpn.la for dlopen()
  5. On some systems, dlopen() is not in libdl.so [1].
  6. [1] https://autotools.io/autoconf/finding.html
  7. https://bugzilla.gnome.org/show_bug.cgi?id=769783
  8. ---
  9. configure.ac | 3 +++
  10. properties/Makefile.am | 3 ++-
  11. 2 files changed, 5 insertions(+), 1 deletion(-)
  12. diff --git a/configure.ac b/configure.ac
  13. index 34829f4..3988bad 100644
  14. --- a/configure.ac
  15. +++ b/configure.ac
  16. @@ -38,6 +38,9 @@ dnl
  17. AC_PROG_GCC_TRADITIONAL
  18. AC_FUNC_MEMCMP
  19. AC_CHECK_FUNCS(select socket uname)
  20. +AC_SEARCH_LIBS([dlopen], [dl dld], [], [
  21. + AC_MSG_ERROR([unable to find the dlopen() function])
  22. +])
  23. dnl ensure that when the Automake generated makefile calls aclocal,
  24. dnl it honours the $ACLOCAL_FLAGS environment variable
  25. diff --git a/properties/Makefile.am b/properties/Makefile.am
  26. index 552e537..04ed5cd 100644
  27. --- a/properties/Makefile.am
  28. +++ b/properties/Makefile.am
  29. @@ -57,7 +57,8 @@ libnm_vpn_plugin_openvpn_la_CFLAGS = \
  30. $(LIBNM_CFLAGS)
  31. libnm_vpn_plugin_openvpn_la_LIBADD = \
  32. - $(LIBNM_LIBS)
  33. + $(LIBNM_LIBS) \
  34. + $(DLOPEN)
  35. libnm_vpn_plugin_openvpn_la_LDFLAGS = \
  36. -avoid-version \
  37. --
  38. cgit v0.12