From 51d72a619e8648544053c0c0f56a88eeef601cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= Date: Mon, 24 Aug 2015 13:16:56 -0400 Subject: [PATCH] drm: Add -lm to libdrm ldflags to fix build failure. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Last commit (b556ea127e004b734b2a7bf8e67cdcf56312171d) introduced use of log2 which require -lm flag for the linker on quite few distribution. Just add that flag to fix build. Signed-off-by: Jérôme Glisse --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 55e39a56..cc8d88af 100644 --- a/Makefile.am +++ b/Makefile.am @@ -100,7 +100,7 @@ SUBDIRS = \ libdrm_la_LTLIBRARIES = libdrm.la libdrm_ladir = $(libdir) -libdrm_la_LDFLAGS = -version-number 2:4:0 -no-undefined +libdrm_la_LDFLAGS = -version-number 2:4:0 -no-undefined -lm libdrm_la_LIBADD = @CLOCK_LIB@ libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm