clang doesn't like the DEF_WEAK(regfree)
that's in the libc code that gets recycled for the test. Diff below defines it away in the same way as we do in ld.so. ok? Index: regress/lib/libc/regex/Makefile =================================================================== RCS file: /cvs/src/regress/lib/libc/regex/Makefile,v retrieving revision 1.10 diff -u -p -r1.10 Makefile --- regress/lib/libc/regex/Makefile 10 Dec 2014 03:12:38 -0000 1.10 +++ regress/lib/libc/regex/Makefile 16 Apr 2017 10:22:43 -0000 @@ -7,6 +7,7 @@ SRCS= main.c split.c debug.c regcomp.c r CLEANFILES += t_exhaust CFLAGS+= -I${.CURDIR}/../../../../lib/libc/regex -DREDEBUG -DPOSIX_MISTAKE +CFLAGS+= -D'DEF_WEAK(x)=asm("")' TESTS= ${.CURDIR}/tests