autotools: library-dependency when no sse and 32-bit
authorSergii Romantsov <sergii.romantsov@gmail.com>
Thu, 1 Nov 2018 11:02:43 +0000 (13:02 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 5 Nov 2018 12:21:49 +0000 (13:21 +0100)
Building of 32bit Mesa may fail if __SSE__ is not specified.
Added missed dependency from libm.

v2: avoided dependecy on any flag, just link

v3: meson doesn't fail, but have added dependency on libm

CC: Dylan Baker <dylan@pnwbakers.com>
CC: Lionel G Landwerlin <lionel.g.landwerlin@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108560
Signed-off-by: Sergii Romantsov <sergii.romantsov@globallogic.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/util/Makefile.am
src/util/meson.build

index b857db8a8667d59f18ede2012a8e80a8c6a9f8b7..4bda54c551d960d45d5db850bd9bf142b2025fb6 100644 (file)
@@ -60,7 +60,8 @@ libmesautil_la_LIBADD = \
        $(PTHREAD_LIBS) \
        $(CLOCK_LIB) \
        $(ZLIB_LIBS) \
-       $(LIBATOMIC_LIBS)
+       $(LIBATOMIC_LIBS) \
+       -lm
 
 libxmlconfig_la_SOURCES = $(XMLCONFIG_FILES)
 libxmlconfig_la_CFLAGS = \
index 7caea27d6600b483c1f87bffe1f8aaa96fde9707..156621aff651de405d52408aef54e014327437ff 100644 (file)
@@ -119,7 +119,7 @@ libmesa_util = static_library(
   'mesa_util',
   [files_mesa_util, format_srgb],
   include_directories : inc_common,
-  dependencies : [dep_zlib, dep_clock, dep_thread, dep_atomic],
+  dependencies : [dep_zlib, dep_clock, dep_thread, dep_atomic, dep_m],
   c_args : [c_msvc_compat_args, c_vis_args],
   build_by_default : false
 )