diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2017-01-05 21:14:23 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2017-01-05 21:14:23 +0000 |
commit | 0faca727b38093cb8016cd006555a3b22980c34b (patch) | |
tree | a36e1dd2b74efe98fbfe87836304e1df15fcf370 /libexec | |
parent | cdd7e46de9b5696767f5d29890658e032bb457cc (diff) |
Build with -fno-builtin to keep clang from optimizing the _dl_memset()
and _dl_bcopy() functions into calls to memset() and memcpy().
ok kettenis@
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ld.so/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/Makefile b/libexec/ld.so/Makefile index 5405845fa6d..aaa5321efa2 100644 --- a/libexec/ld.so/Makefile +++ b/libexec/ld.so/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.62 2016/07/04 21:15:06 guenther Exp $ +# $OpenBSD: Makefile,v 1.63 2017/01/05 21:14:22 naddy Exp $ SUBDIR=ldconfig ldd MAN= ld.so.1 @@ -31,6 +31,7 @@ SRCS+= library.c .PATH: ${.CURDIR}/${MACHINE_CPU} DEBUG?= -g +CFLAGS += -fno-builtin CFLAGS += -Wall -Werror CFLAGS += -I${.CURDIR} -I${.CURDIR}/${MACHINE_CPU} \ -D'DEF_WEAK(x)=asm("")' -D'DEF_STRONG(x)=asm("")' \ |