[gimp/gimp-2-8] Bug 695416 - undefined reference when building devel-docs/tools/widgets.c
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 695416 - undefined reference when building devel-docs/tools/widgets.c
- Date: Fri, 8 Mar 2013 22:42:43 +0000 (UTC)
commit ae5f847a11abcb1ab91babf29f206ad1e559db57
Author: Michael Natterer <mitch gimp org>
Date: Fri Mar 8 23:40:18 2013 +0100
Bug 695416 - undefined reference when building devel-docs/tools/widgets.c
Add -lm to the linker flags for the doc-shooter binary. Actually add a
whole snippet of makefile boilerplate that also deals with -mwindows,
all other makefiles seem to have it. I have no clue what it does.
devel-docs/tools/Makefile.am | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/devel-docs/tools/Makefile.am b/devel-docs/tools/Makefile.am
index 3da7867..92773f0 100644
--- a/devel-docs/tools/Makefile.am
+++ b/devel-docs/tools/Makefile.am
@@ -1,9 +1,15 @@
## Process this file with automake to produce Makefile.in
+if OS_WIN32
+mwindows = -mwindows
+else
+libm = -lm
+endif
+
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
-libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la
+libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la $(libm)
libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
@@ -12,6 +18,8 @@ AM_CPPFLAGS = $(GTK_CFLAGS) -DTOP_SRCDIR=\"$(top_srcdir)\"
INCLUDES = -I$(top_srcdir)
+AM_LDFLAGS = $(mwindows)
+
if ENABLE_GTK_DOC
noinst_PROGRAMS = $(DOC_SHOOTER)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]