diff options
Diffstat (limited to 'lib/librthread')
-rw-r--r-- | lib/librthread/Makefile | 7 |
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 |