summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Ferrandis <ludovic.ferrandis@intel.com>2013-09-13 10:28:44 +0200
committerJussi Kukkonen <jku@goto.fi>2014-07-07 16:32:29 +0300
commit21d60022f3464ffdb09def9cfc95078229441fa8 (patch)
treed0b037839ca52a07fdf04e714e26d5000a941c6f
parentc7602ea90e56f5c41b9f22aba0f4433fc22d3034 (diff)
downloaddleyna-renderer-21d60022f3464ffdb09def9cfc95078229441fa8.tar.gz
[Autoconf] Add Math lib to link
- Add Math library to the link command - Update the compiler flags to enable the check of undefined function at link time. It seems the option '-no-undefined' pass in libdleyna_renderer_1_0_la_LDFLAGS is not enough. It seems using libtool, this option should be set to the compiler flags. Fix issue #117: Missing Math library to the link command <https://github.com/01org/dleyna-renderer/issues/117> Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com> Fixes #124 Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
-rw-r--r--libdleyna/renderer/Makefile.am3
-rw-r--r--m4/compiler-flags.m41
2 files changed, 3 insertions, 1 deletions
diff --git a/libdleyna/renderer/Makefile.am b/libdleyna/renderer/Makefile.am
index 26b1cce..ca601c7 100644
--- a/libdleyna/renderer/Makefile.am
+++ b/libdleyna/renderer/Makefile.am
@@ -35,7 +35,8 @@ libdleyna_renderer_1_0_la_LIBADD = $(GLIB_LIBS) \
$(GUPNP_LIBS) \
$(GUPNPAV_LIBS) \
$(GUPNPDLNA_LIBS) \
- $(SOUP_LIBS)
+ $(SOUP_LIBS) \
+ -lm
MAINTAINERCLEANFILES = Makefile.in \
aclocal.m4 \
diff --git a/m4/compiler-flags.m4 b/m4/compiler-flags.m4
index b1b7f1a..7a1853d 100644
--- a/m4/compiler-flags.m4
+++ b/m4/compiler-flags.m4
@@ -52,4 +52,5 @@ AC_DEFUN_ONCE([DLEYNA_SERVER_COMPILER_FLAGS], [
fi
CFLAGS+=" -Wno-format-extra-args"
+ CFLAGS+=" -Wl,--no-undefined"
])