From 128419b4722dd066a3cabb3f07788f35ba9790b0 Mon Sep 17 00:00:00 2001 From: des Date: Thu, 26 Jun 2008 11:58:26 +0000 Subject: [PATCH] Some tests won't build at WARNS level 6 due to aliasing violations. Add missing -I. so the tests will build when ${.OBJDIR} != ${.CURDIR}. ${.OBJDIR} does not need to be spelled out. --- lib/libarchive/test/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libarchive/test/Makefile b/lib/libarchive/test/Makefile index ed4dfe86b5b..b1d2a335432 100644 --- a/lib/libarchive/test/Makefile +++ b/lib/libarchive/test/Makefile @@ -72,7 +72,7 @@ TESTS= \ # Build the test program using all libarchive sources + the test sources. SRCS= ${LA_SRCS} \ ${TESTS} \ - ${.OBJDIR}/list.h \ + list.h \ main.c \ read_open_memory.c @@ -84,19 +84,19 @@ DPADD=${LIBBZ2} ${LIBZ} CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\" LDADD= -lz -lbz2 CFLAGS+= -static -g -CFLAGS+= -I${LA_SRCDIR} +CFLAGS+= -I${LA_SRCDIR} -I. # Uncomment to link against dmalloc #LDADD+= -L/usr/local/lib -ldmalloc #CFLAGS+= -I/usr/local/include -DUSE_DMALLOC -WARNS=6 +#WARNS=6 # Build libarchive_test and run it. check test: libarchive_test ./libarchive_test -v -r ${.CURDIR} # list.h is just a list of all tests, as indicated by DEFINE_TEST macro lines -${.OBJDIR}/list.h: ${TESTS} Makefile +list.h: ${TESTS} Makefile (cd ${.CURDIR}; cat ${TESTS}) | grep DEFINE_TEST > list.h CLEANFILES += *.out *.o *.core *~ list.h -- 2.45.0