aboutsummaryrefslogtreecommitdiff
path: root/lib/libxo
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2016-03-17 00:37:04 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2016-03-17 00:37:04 +0000
commit342f335141659efb2b94c6ee21325fd383c23a94 (patch)
tree27e3f07cc538a292070c5835c8a5d246e8f78917 /lib/libxo
parentd20ec2e52b5226df11f765b1e9000913c971e869 (diff)
downloadsrc-342f335141659efb2b94c6ee21325fd383c23a94.tar.gz
src-342f335141659efb2b94c6ee21325fd383c23a94.zip
We need libutil
and make it feasible to at least build the tests in situ
Notes
Notes: svn path=/head/; revision=296970
Diffstat (limited to 'lib/libxo')
-rw-r--r--lib/libxo/tests/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libxo/tests/Makefile b/lib/libxo/tests/Makefile
index 1a0f7c69cfee..06fb626ce967 100644
--- a/lib/libxo/tests/Makefile
+++ b/lib/libxo/tests/Makefile
@@ -242,8 +242,14 @@ PROGS+= test_11
CFLAGS+= -I${LIBXOSRC}/libxo
-LIBADD= xo
+LIBADD= xo util
SUBDIR+= encoder
+.if ${MACHINE} == "host"
+# make it easy to test without install
+TESTSDIR= ${.OBJDIR}
+CFLAGS+= -I${.CURDIR:H}
+.endif
+
.include <bsd.test.mk>