summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJérôme Glisse <jglisse@redhat.com>2015-08-24 13:16:56 -0400
committerJérôme Glisse <jglisse@redhat.com>2015-08-24 13:16:56 -0400
commit51d72a619e8648544053c0c0f56a88eeef601cff (patch)
treebfdd5e679ac6c7a22202a2844867e4942de70d4c /Makefile.am
parentb556ea127e004b734b2a7bf8e67cdcf56312171d (diff)
drm: Add -lm to libdrm ldflags to fix build failure.
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 <jglisse@redhat.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
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