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