Use CPPFLAGS.src and not COPTS.src to override -std=c++11 flag. The

latter doesn't help make depend.
This commit is contained in:
joerg 2013-09-03 14:54:00 +00:00
parent 9af780857c
commit acdab5428b
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.20 2013/09/02 14:34:56 joerg Exp $
# $NetBSD: Makefile,v 1.21 2013/09/03 14:54:00 joerg Exp $
LIB= LLVMSupport
@ -111,7 +111,7 @@ SRCS+= Host.inc \
TimeValue.inc
.for src in ${SRCS:M*.c}
COPTS.${src}+= -std=gnu99
CPPFLAGS.${src}+= -std=gnu99
.endfor
.if defined(HOSTLIB)

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2013/09/02 14:34:56 joerg Exp $
# $NetBSD: Makefile,v 1.3 2013/09/03 14:54:00 joerg Exp $
LIB= LLVMX86Disassembler
@ -13,7 +13,7 @@ SRCS+= X86Disassembler.cpp \
X86DisassemblerDecoder.c
.for src in ${SRCS:M*.c}
COPTS.${src}+= -std=gnu99
CPPFLAGS.${src}+= -std=gnu99
.endfor
.if defined(HOSTLIB)