[Pdbg] [PATCH] Makefile.am: Add -lrt to LDFLAGS
Alistair Popple
alistair at popple.id.au
Tue May 22 11:39:30 AEST 2018
Otherwise we get an undefined reference to clock_gettime when using certain
cross compilers.
Signed-off-by: Alistair Popple <alistair at popple.id.au>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 6253b03..cf04b94 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,7 +31,7 @@ pdbg_SOURCES = \
src/ring.c src/htm.c src/progress.c src/options_ at ARCH@.c
pdbg_LDADD = $(DT_objects) libpdbg.la libfdt.la \
- -L.libs
+ -L.libs -lrt
pdbg_LDFLAGS = -Wl,--whole-archive,-lpdbg,--no-whole-archive
pdbg_CFLAGS = -I$(top_srcdir)/libpdbg -Wall -Werror -DGIT_SHA1=\"${GIT_SHA1}\" \
--
2.11.0
More information about the Pdbg
mailing list