autotools: library-dependency when no sse and 32-bit

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>
This commit is contained in:
Sergii Romantsov 2018-11-01 13:02:43 +02:00 committed by Lionel Landwerlin
parent f7fd0d86a9
commit ce837a5372
2 changed files with 3 additions and 2 deletions

View file

@ -60,7 +60,8 @@ libmesautil_la_LIBADD = \
$(PTHREAD_LIBS) \ $(PTHREAD_LIBS) \
$(CLOCK_LIB) \ $(CLOCK_LIB) \
$(ZLIB_LIBS) \ $(ZLIB_LIBS) \
$(LIBATOMIC_LIBS) $(LIBATOMIC_LIBS) \
-lm
libxmlconfig_la_SOURCES = $(XMLCONFIG_FILES) libxmlconfig_la_SOURCES = $(XMLCONFIG_FILES)
libxmlconfig_la_CFLAGS = \ libxmlconfig_la_CFLAGS = \

View file

@ -119,7 +119,7 @@ libmesa_util = static_library(
'mesa_util', 'mesa_util',
[files_mesa_util, format_srgb], [files_mesa_util, format_srgb],
include_directories : inc_common, 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], c_args : [c_msvc_compat_args, c_vis_args],
build_by_default : false build_by_default : false
) )