diff mbox

[i-g-t] tools/quick_dump/makefile.am: add -lrt to get clock_gettime

Message ID 1429632497-5416-1-git-send-email-tim.gore@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

tim.gore@intel.com April 21, 2015, 4:08 p.m. UTC
From: Tim Gore <tim.gore@intel.com>

Attempting to build IGT on linux without libunwind fails
due to tools/quick_dump not linking the rt library,
causing an undefined symbol error for clock_gettime.
Adding -lrt to the list of libraries in Makefile.am fixes
this.

Signed-off-by: Tim Gore <tim.gore@intel.com>
---
 tools/quick_dump/Makefile.am | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/tools/quick_dump/Makefile.am b/tools/quick_dump/Makefile.am
index 7b06ec3..83f93a2 100644
--- a/tools/quick_dump/Makefile.am
+++ b/tools/quick_dump/Makefile.am
@@ -14,6 +14,7 @@  I915ChipsetPython_la_LIBADD =			\
 	$(DRM_LIBS)				\
 	$(CAIRO_LIBS)				\
 	$(LIBUNWIND_LIBS)			\
+	-lrt
 	$(NULL)
 
 chipset.py: chipset_wrap_python.c