From bedd95f5f14524360117209ed6a1a83627523f54 Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <sebastian@pipping.org>
Date: Wed, 10 May 2017 17:33:05 +0200
Subject: [PATCH] Backport $(MATH_LIB) patch to GEGL 0.2

Source:
https://git.gnome.org/browse/gegl/patch/?id=c9bbc815378cb81ba8a48be35f615e7e2d74dffc
---
 bin/Makefile.am      | 2 +-
 examples/Makefile.am | 2 +-
 tools/Makefile.am    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/Makefile.am b/bin/Makefile.am
index c85ecbd..08a156b 100644
--- a/bin/Makefile.am
+++ b/bin/Makefile.am
@@ -23,7 +23,7 @@ AM_CFLAGS = \
 
 AM_LDFLAGS =  \
 	$(no_undefined) ../gegl/libgegl-$(GEGL_API_VERSION).la \
-	$(DEP_LIBS) $(BABL_LIBS) $(PNG_LIBS) $(LIBSPIRO)
+	$(DEP_LIBS) $(BABL_LIBS) $(PNG_LIBS) $(LIBSPIRO) $(MATH_LIB)
 
 bin_PROGRAMS = gegl
 
diff --git a/examples/Makefile.am b/examples/Makefile.am
index c29a1dd..5c4ac3a 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -42,4 +42,4 @@ AM_CFLAGS = $(DEP_CFLAGS) $(GTK_CFLAGS) $(BABL_CFLAGS) $(PNG_CFLAGS)
 
 AM_LDFLAGS =  \
 	$(top_builddir)/gegl/libgegl-$(GEGL_API_VERSION).la \
-	$(DEP_LIBS) $(GTK_LIBS) $(BABL_LIBS) $(PNG_LIBS)
+	$(DEP_LIBS) $(GTK_LIBS) $(BABL_LIBS) $(PNG_LIBS) $(MATH_LIB)
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 8f1077d..4dd3845 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -22,7 +22,7 @@ AM_CFLAGS = $(DEP_CFLAGS) $(BABL_CFLAGS)
 
 AM_LDFLAGS = \
 	$(top_builddir)/gegl/libgegl-$(GEGL_API_VERSION).la \
-	$(DEP_LIBS) $(BABL_LIBS)
+	$(DEP_LIBS) $(BABL_LIBS) $(MATH_LIB)
 
 noinst_PROGRAMS = introspect operation_reference img_cmp
 
diff --git a/tests/buffer/Makefile.am b/tests/buffer/Makefile.am
index d62ce71..0a4df53 100644
--- a/tests/buffer/Makefile.am
+++ b/tests/buffer/Makefile.am
@@ -30,7 +30,7 @@ AM_CFLAGS = $(DEP_CFLAGS) $(BABL_CFLAGS)
 
 buffer_test_LDADD = 						\
 	$(top_builddir)/gegl/libgegl-$(GEGL_API_VERSION).la	\
-	$(DEP_LIBS) $(BABL_LIBS)
+	$(DEP_LIBS) $(BABL_LIBS) $(MATH_LIB)
 
 
 # Our custom target rules
-- 
2.12.2

