[libdrm] tests: Add -lm to LDADD for dristat
diff mbox

Message ID 1441620134-9877-1-git-send-email-michel@daenzer.net
State New
Headers show

Commit Message

Michel Dänzer Sept. 7, 2015, 10:02 a.m. UTC
From: Michel Dänzer <michel.daenzer@amd.com>

Fixes build failure due to unresolved log2.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
 tests/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

Comments

Alex Deucher Sept. 9, 2015, 3:50 a.m. UTC | #1
On Mon, Sep 7, 2015 at 6:02 AM, Michel Dänzer <michel@daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer@amd.com>
>
> Fixes build failure due to unresolved log2.
>
> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

> ---
>  tests/Makefile.am | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index 9a2d932..a511d28 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -33,6 +33,8 @@ check_PROGRAMS = \
>         dristat \
>         drmstat
>
> +dristat_LDADD = -lm
> +
>  if HAVE_NOUVEAU
>  SUBDIRS += nouveau
>  endif
> --
> 2.5.0
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
Emil Velikov Sept. 9, 2015, 3:03 p.m. UTC | #2
On 7 September 2015 at 11:02, Michel Dänzer <michel@daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer@amd.com>
>
> Fixes build failure due to unresolved log2.
>
Sigh I've completely forgot that we still have the #include
"xf86drm.c" hack around.

I'll resent the patch that nukes it shortly but until that gets
reviewed this fix will be living in master.

Thanks
Emil

Patch
diff mbox

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 9a2d932..a511d28 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -33,6 +33,8 @@  check_PROGRAMS = \
 	dristat \
 	drmstat
 
+dristat_LDADD = -lm
+
 if HAVE_NOUVEAU
 SUBDIRS += nouveau
 endif