isl: move -lm at the end of tests_ldadd
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 27 Apr 2016 17:54:40 +0000 (19:54 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 27 Apr 2016 18:14:56 +0000 (20:14 +0200)
The test was failing to build with "undefined reference to `roundf'" errors,
so Make check on mesa was failing.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/isl/Makefile.am

index 806934eae5b5b0e52dbfec0c6f3b91f0a935962b..1427e7bb0335557e495cc8092c4b6f187e4612f4 100644 (file)
@@ -110,9 +110,9 @@ check_PROGRAMS = $(TESTS)
 
 # Link tests to lib965_compiler.la for brw_get_device_info().
 tests_ldadd =                                          \
-       -lm                                             \
        libisl.la                                       \
-       $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la
+       $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
+       -lm
 
 tests_isl_surf_get_image_offset_test_SOURCES =         \
        tests/isl_surf_get_image_offset_test.c