blob: 0de062a87b609d2a6d898f0776aa684f42be539b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-ad,v 1.11 2014/01/07 09:43:54 mef Exp $
make sure no one sneaks a -O* in on us via one of these variables
set in the environment
--- Makefile.in.orig 2013-08-20 04:10:31.000000000 +0900
+++ Makefile.in 2013-12-20 11:35:09.000000000 +0900
@@ -222,6 +222,17 @@
lexor.o: lexor.cc parse.h
+# make sure no one sneaks a -O* in on us via one of these variables
+# set in the environment
+CXX_NOOPT=$(CXX:-O%=)
+CPPFLAGS_NOOPT=$(CPPFLAGS:-O%=)
+CXXFLAGS_NOOPT=$(CXXFLAGS:-O%=)
+
+parse.o: parse.cc
+ @[ -d dep ] || mkdir dep
+ $(CXX_NOOPT) $(CPPFLAGS_NOOPT) $(CXXFLAGS_NOOPT) -MD -c $< -o $*.o
+ mv $*.d dep/$*.d
+
parse.o: parse.cc
# Build this in two steps to avoid parallel build issues (see pr3462585)
|