[v1,4/5] autotools: library-dependency when no sse and 32-bit

Submitted by Sergii Romantsov on Oct. 26, 2018, 10:05 a.m.

Details

Message ID 1540548328-6903-4-git-send-email-sergii.romantsov@globallogic.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Sergii Romantsov Oct. 26, 2018, 10:05 a.m.
Building of 32bit Mesa may fail if __SSE__ is not specified.
Added missed dependency from libm.

CC: Dylan Baker <dylan@pnwbakers.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108560
Signed-off-by: Sergii Romantsov <sergii.romantsov@globallogic.com>
---
 src/util/Makefile.am | 5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index d79f2b3..24eeaa8 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -62,6 +62,11 @@  libmesautil_la_LIBADD = \
 	$(ZLIB_LIBS) \
 	$(LIBATOMIC_LIBS)
 
+if !SSE_CFLAGS
+libmesautil_la_LIBADD += \
+	-lm
+endif
+
 libxmlconfig_la_SOURCES = $(XMLCONFIG_FILES)
 libxmlconfig_la_CFLAGS = \
 	$(DEFINES) \