File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ m4_include([pkg.m4])
24
24
dnl faketime breaks configure and is only needed for make. Disable it here.
25
25
unset FAKETIME
26
26
27
+ if test "x${CXXFLAGS+set}" = "xset"; then
28
+ CXXFLAGS_overridden=yes
29
+ else
30
+ CXXFLAGS_overridden=no
31
+ fi
32
+
27
33
dnl ==============================================================
28
34
dnl Setup for automake
29
35
dnl ==============================================================
@@ -134,7 +140,9 @@ PKG_PROG_PKG_CONFIG
134
140
# # TODO: Remove these hard-coded paths and flags. They are here for the sake of
135
141
# # compatibility with the legacy buildsystem.
136
142
# #
137
- CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter"
143
+ if test "x$CXXFLAGS_overridden" = "xno"; then
144
+ CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter"
145
+ fi
138
146
CPPFLAGS="$CPPFLAGS -DBOOST_SPIRIT_THREADSAFE -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS"
139
147
140
148
AC_LANG_PUSH ( [ C++] )
@@ -182,7 +190,9 @@ case $host in
182
190
183
191
CPPFLAGS="$CPPFLAGS -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -D__USE_MINGW_ANSI_STDIO"
184
192
LEVELDB_TARGET_FLAGS="TARGET_OS=OS_WINDOWS_CROSSCOMPILE"
185
- CXXFLAGS="$CXXFLAGS -w"
193
+ if test "x$CXXFLAGS_overridden" = "xno"; then
194
+ CXXFLAGS="$CXXFLAGS -w"
195
+ fi
186
196
;;
187
197
*darwin*)
188
198
TARGET_OS=darwin
You can’t perform that action at this time.
0 commit comments