[gtksourceview] build: use LT_LIB_M instead of hardcoding -lm
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] build: use LT_LIB_M instead of hardcoding -lm
- Date: Wed, 21 Dec 2016 18:53:14 +0000 (UTC)
commit a6388e26fe1b3d92afe45bf7a11ef511a7ea0437
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Dec 21 19:45:13 2016 +0100
build: use LT_LIB_M instead of hardcoding -lm
configure.ac | 3 +++
gtksourceview/Makefile.am | 2 +-
tests/Makefile.am | 2 +-
testsuite/Makefile.am | 2 +-
4 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f9fa7f6..79709b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -144,6 +144,9 @@ case "$host" in
esac
AC_SUBST(HIDDEN_VISIBILITY_CFLAGS)
+# Dynamic linking dependencies
+LT_LIB_M
+
AX_REQUIRE_DEFINED([AX_PKG_CHECK_MODULES])
AX_PKG_CHECK_MODULES([DEP],
[glib-2.0 >= $glib_req gio-2.0 >= $glib_req gtk+-3.0 >= $gtk_req],
diff --git a/gtksourceview/Makefile.am b/gtksourceview/Makefile.am
index 51b3665..3f47154 100644
--- a/gtksourceview/Makefile.am
+++ b/gtksourceview/Makefile.am
@@ -179,10 +179,10 @@ lib_LTLIBRARIES = libgtksourceview-@GSV_API_VERSION@.la
libgtksourceview_@GSV_API_VERSION@_la_SOURCES =
libgtksourceview_@GSV_API_VERSION@_la_LIBADD = \
- -lm \
libgtksourceview-core.la \
completion-providers/words/libgtksourcecompletionwords.la \
$(CODE_COVERAGE_LIBS) \
+ $(LIBM) \
$(DEP_LIBS) \
$(GTK_MAC_LIBS)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index cc78640..d8f231e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -12,7 +12,7 @@ AM_CPPFLAGS = \
AM_LDFLAGS = $(WARN_LDFLAGS)
LDADD = $(top_builddir)/gtksourceview/libgtksourceview-@GSV_API_VERSION@.la \
- -lm \
+ $(LIBM) \
$(DEP_LIBS) \
$(TESTS_LIBS)
diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am
index d082a90..6660c08 100644
--- a/testsuite/Makefile.am
+++ b/testsuite/Makefile.am
@@ -24,7 +24,7 @@ AM_LDFLAGS = $(WARN_LDFLAGS)
LDADD = $(top_builddir)/gtksourceview/completion-providers/words/libgtksourcecompletionwords.la \
$(top_builddir)/gtksourceview/libgtksourceview-core.la \
- -lm \
+ $(LIBM) \
$(DEP_LIBS) \
$(TESTS_LIBS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]