diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-14 07:19:42 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-14 07:19:42 +0000 |
commit | a73b902f6911c747f2dcdb2be2a337c6dcb7faad (patch) | |
tree | 35dac705187ba6af7bba750389905c0e8c466e84 /usr.bin | |
parent | b72850cfbb6858b6d2bdc318c5a02fbb85f5cf48 (diff) |
Supply DEF_WEAK() macro to suppress warnings during compilation via
reach-around into libc
noted by daniel@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/chpass/Makefile | 5 | ||||
-rw-r--r-- | usr.bin/passwd/Makefile | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile index 75c0d7ff1df..59ed17061f8 100644 --- a/usr.bin/chpass/Makefile +++ b/usr.bin/chpass/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.12 2008/07/04 12:50:23 djm Exp $ +# $OpenBSD: Makefile,v 1.13 2015/09/14 07:19:41 guenther Exp $ .include <bsd.own.mk> @@ -19,4 +19,5 @@ LDADD+= -lrpcsvc -lutil .include <bsd.prog.mk> getpwent.o: getpwent.c - ${COMPILE.c} -UYP ${.CURDIR}/../../lib/libc/gen/getpwent.c + ${COMPILE.c} -UYP -D'DEF_WEAK(x)=asm("")' \ + ${.CURDIR}/../../lib/libc/gen/getpwent.c diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile index 45d09aab3fe..8f27be6df99 100644 --- a/usr.bin/passwd/Makefile +++ b/usr.bin/passwd/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.39 2014/11/20 14:53:15 tedu Exp $ +# $OpenBSD: Makefile,v 1.40 2015/09/14 07:19:41 guenther Exp $ .include <bsd.own.mk> @@ -19,6 +19,7 @@ BINMODE=4555 BINOWN=root getpwent.o: getpwent.c - ${COMPILE.c} -UYP ${.CURDIR}/../../lib/libc/gen/getpwent.c + ${COMPILE.c} -UYP -D'DEF_WEAK(x)=asm("")' \ + ${.CURDIR}/../../lib/libc/gen/getpwent.c .include <bsd.prog.mk> |