diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-04-16 16:01:06 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-04-16 16:01:06 +0000 |
commit | 80e91814b4ea5553d0df65aa8e1b68ba326efd87 (patch) | |
tree | c62cffb9fa10fd8942e2581274b8fe178b709e80 | |
parent | 013b40388a17828dbe560b6fd0df85ee75c487c8 (diff) |
Define DEF_WEAK like we do for ld.so to fix building this with clang.
ok millert@, deraadt@
-rw-r--r-- | regress/lib/libc/regex/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/lib/libc/regex/Makefile b/regress/lib/libc/regex/Makefile index a69432f6823..5b9a0802094 100644 --- a/regress/lib/libc/regex/Makefile +++ b/regress/lib/libc/regex/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.10 2014/12/10 03:12:38 daniel Exp $ +# $OpenBSD: Makefile,v 1.11 2017/04/16 16:01:05 kettenis Exp $ # $NetBSD: Makefile,v 1.2 1995/02/16 19:38:45 cgd Exp $ PROG= re @@ -7,6 +7,7 @@ SRCS= main.c split.c debug.c regcomp.c regerror.c regexec.c regfree.c CLEANFILES += t_exhaust CFLAGS+= -I${.CURDIR}/../../../../lib/libc/regex -DREDEBUG -DPOSIX_MISTAKE +CFLAGS+= -D'DEF_WEAK(x)=asm("")' TESTS= ${.CURDIR}/tests |