diff options
author | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-08-10 02:08:09 +0000 |
---|---|---|
committer | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-08-10 02:08:09 +0000 |
commit | 354862e98ee314410df75c8c9ba3cbc67fe2e036 (patch) | |
tree | ad6dcbe068e42abba95f25758d5f33cf306d73c2 /lib/make/known-architectures/linux | |
parent | 9df920ac98e753660a907664d76c3c778af44f58 (diff) |
Take $(CFLAGS) or $(CXXFLAGS) into account when determining dependencies
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4858 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/known-architectures/linux')
-rw-r--r-- | lib/make/known-architectures/linux | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux index 29a36188..10c81acd 100644 --- a/lib/make/known-architectures/linux +++ b/lib/make/known-architectures/linux @@ -409,7 +409,7 @@ else icc_c99='-c99' fi : ${CFLAGS="$icc_opt $icc_c99"} - : ${C_DEPEND='$(CC) -M $(CPPFLAGS)'} + : ${C_DEPEND='$(CC) -M $(CPPFLAGS) $(CFLAGS)'} if test $icc_version -ge 8; then c_warn_flags='-Wall -w1 -Wcheck' else @@ -486,7 +486,7 @@ else cxx_warn_flags='-Wall -w1' fi : ${CXX_WARN_FLAGS="$cxx_warn_flags"} - : ${CXX_DEPEND='$(CXX) -M $(CPPFLAGS)'} + : ${CXX_DEPEND='$(CXX) -M $(CPPFLAGS) $(CXXFLAGS)'} CXX_VERSION="`$CXX -V 2>&1 | grep -i version | head -n1`" : ${CXX_OPENMP_FLAGS='-openmp'} ;; |