media-libs/gegl: add missing -lm to tests, bug #639986
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 5 Jan 2020 13:26:45 +0000 (13:26 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 5 Jan 2020 13:26:59 +0000 (13:26 +0000)
The change fixes underlinking on ia64:
```
gnu/bin/ld: buffer-test.o: undefined reference to symbol 'floor@@GLIBC_2.2'
/usr/lib/gcc/ia64-unknown-linux-gnu/9.2.0/../../../../ia64-unknown-linux-gnu/bin/ld:
    /lib/libm.so.6.1: error adding symbols: DSO missing from command line
```

Closes: https://bugs.gentoo.org/639986
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
media-libs/gegl/files/gegl-0.2.0-underlinking.patch

index 53f29c49da7dffe7d1dfdd7ef7b3facca32a7083..00e936ce68ead6bd6df484c4d2150dbd850b7e05 100644 (file)
@@ -47,6 +47,19 @@ index 8f1077d..4dd3845 100644
  
  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