diff -urw gegl-0.2.0/bin/Makefile.in gegl-0.2.0.new/bin/Makefile.in
--- gegl-0.2.0/bin/Makefile.in	2012-04-02 23:57:08.000000000 +0200
+++ gegl-0.2.0.new/bin/Makefile.in	2017-08-13 19:26:04.989187748 +0200
@@ -363,7 +363,7 @@
 
 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)
 
 gegl_SOURCES = gegl.c gegl-options.c gegl-options.h gegl-path-smooth.c \
 	gegl-path-smooth.h $(am__append_1)
diff -urw gegl-0.2.0/examples/Makefile.in gegl-0.2.0.new/examples/Makefile.in
--- gegl-0.2.0/examples/Makefile.in	2012-04-02 23:57:08.000000000 +0200
+++ gegl-0.2.0.new/examples/Makefile.in	2017-08-13 19:26:14.878857864 +0200
@@ -376,7 +376,7 @@
 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)
 
 all: all-recursive
 
diff -urw gegl-0.2.0/gegl/Makefile.in gegl-0.2.0.new/gegl/Makefile.in
--- gegl-0.2.0/gegl/Makefile.in	2012-04-02 23:57:08.000000000 +0200
+++ gegl-0.2.0.new/gegl/Makefile.in	2017-08-13 19:26:41.727962287 +0200
@@ -287,8 +287,9 @@
 LENSFUN_LIBS = @LENSFUN_LIBS@
 LIBJPEG = @LIBJPEG@
 LIBOBJS = @LIBOBJS@
+MATH_LIB = @MATH_LIB@
 LIBS = \
-	$(DEP_LIBS) $(BABL_LIBS)
+	$(DEP_LIBS) $(BABL_LIBS) $(MATH_LIB)
 
 LIBSPIRO = @LIBSPIRO@
 LIBTOOL = @LIBTOOL@
@@ -301,7 +302,6 @@
 MAINT = @MAINT@
 MAKEINFO = @MAKEINFO@
 MANIFEST_TOOL = @MANIFEST_TOOL@
-MATH_LIB = @MATH_LIB@
 MKDIR_P = @MKDIR_P@
 MKINSTALLDIRS = @MKINSTALLDIRS@
 MMX_EXTRA_CFLAGS = @MMX_EXTRA_CFLAGS@
diff -urw gegl-0.2.0/tools/Makefile.in gegl-0.2.0.new/tools/Makefile.in
--- gegl-0.2.0/tools/Makefile.in	2012-04-02 23:57:10.000000000 +0200
+++ gegl-0.2.0.new/tools/Makefile.in	2017-08-13 19:27:02.307275859 +0200
@@ -394,7 +394,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)
 
 @HAVE_EXIV2_TRUE@exp_combine_SOURCES = exp_combine.cpp
 @HAVE_EXIV2_TRUE@exp_combine_LDADD = $(EXIV2_LIBS) 
