summaryrefslogtreecommitdiff
path: root/lib/librthread/Makefile
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-02-18 16:24:03 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-02-18 16:24:03 +0000
commitbac3ada9694a56e272ae0239fe96d6ff2828254f (patch)
tree373e285e1a4e739bf7ff631f734a579ce202080f /lib/librthread/Makefile
parentd26ed6ffb11c1e3b237598f4409e7fb5cc27f8ec (diff)
Work around compiler confusion while building rthread.o on vax.
Diffstat (limited to 'lib/librthread/Makefile')
-rw-r--r--lib/librthread/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/librthread/Makefile b/lib/librthread/Makefile
index 991a191b0c9..11e0d79eafa 100644
--- a/lib/librthread/Makefile
+++ b/lib/librthread/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.24 2012/02/15 06:48:40 guenther Exp $
+# $OpenBSD: Makefile,v 1.25 2012/02/18 16:24:02 miod Exp $
LIB=pthread
WANTLINT=
@@ -6,7 +6,11 @@ LINTFLAGS=-z
LIBCSRCDIR= ${.CURDIR}/../libc
CFLAGS+=-Wall -g -Werror -Wshadow
-CFLAGS+=-Wstrict-prototypes -Wmissing-prototypes -Wsign-compare
+.if "${MACHINE_ARCH}" != "vax"
+CFLAGS+=-Wmissing-prototypes
+.endif
+CFLAGS+=-Wstrict-prototypes
+CFLAGS+=-Wsign-compare
CFLAGS+=-I${LIBCSRCDIR}/arch/${MACHINE_CPU} -I${LIBCSRCDIR}/include
LDADD = -Wl,-znodelete,-zinitfirst