summaryrefslogtreecommitdiff
path: root/lib/librthread
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-11-22 19:10:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-11-22 19:10:28 +0000
commit2bb6c533bbabb41f9df9c7662d8db5f0bf0104c6 (patch)
tree9db2876ff4415f2c9716c7a0e95101d390bf4a57 /lib/librthread
parent03f13ed36f8e16034209ca52299cec3b8f3d4545 (diff)
Do not pass -Wmissing-prototypes when building on a non-ELF platform with
gcc 3 as the compiler. The way constructors are built triggers this warning, which is fatal because of -Werror. ok espie@ guenther@
Diffstat (limited to 'lib/librthread')
-rw-r--r--lib/librthread/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/librthread/Makefile b/lib/librthread/Makefile
index 37094c6f116..9f9d6264e5c 100644
--- a/lib/librthread/Makefile
+++ b/lib/librthread/Makefile
@@ -1,13 +1,14 @@
-# $OpenBSD: Makefile,v 1.33 2012/09/12 09:19:54 haesbaert Exp $
+# $OpenBSD: Makefile,v 1.34 2012/11/22 19:10:27 miod Exp $
-# For ``COMPILER_VERSION''
+# For ``COMPILER_VERSION'' and ``ELF_TOOLCHAIN''
.include <bsd.own.mk>
LIB=pthread
LIBCSRCDIR= ${.CURDIR}/../libc
CFLAGS+=-Wall -g -Werror -Wshadow
-.if ${COMPILER_VERSION:L} == "gcc3" || ${COMPILER_VERSION:L} == "gcc4"
+.if ${COMPILER_VERSION:L} == "gcc4" || \
+ (${COMPILER_VERSION:L} == "gcc3" && ${ELF_TOOLCHAIN:L} == "yes")
CFLAGS+=-Wmissing-prototypes
.endif
CFLAGS+=-Wstrict-prototypes