[NetworkManager-pptp] build: fix underlinking
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [NetworkManager-pptp] build: fix underlinking
- Date: Sun, 13 Mar 2022 18:11:12 +0000 (UTC)
commit aedc4143c21be3772631b04f1c7c071f017a16d9
Author: Michael Biebl <biebl debian org>
Date: Sat Mar 12 20:47:46 2022 +0100
build: fix underlinking
Link against gmodule-2.0 as nm-pptp-editor-plugin.c uses g_module_{open,symbol,close}.
https://gitlab.gnome.org/GNOME/NetworkManager-pptp/-/merge_requests/12
Makefile.am | 2 +-
configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 2d7cb13..ef7314f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -112,7 +112,7 @@ src_nm_pptp_pppd_plugin_la_CPPFLAGS = $(src_cppflags)
src_nm_pptp_pppd_plugin_la_LDFLAGS = \
-module -avoid-version
src_nm_pptp_pppd_plugin_la_LIBADD = \
- $(GLIB_LIBS)
+ $(GLIB_LIBS) \
$(LIBNM_LIBS)
###############################################################################
diff --git a/configure.ac b/configure.ac
index fd609d8..7bfc9fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -110,7 +110,7 @@ IT_PROG_INTLTOOL([0.35])
AM_GLIB_GNU_GETTEXT
# gio-unix will require glib and gio
-PKG_CHECK_MODULES(GLIB, gio-unix-2.0 >= 2.34)
+PKG_CHECK_MODULES(GLIB, gmodule-2.0 gio-unix-2.0 >= 2.34)
GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_34"
GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_34"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]