diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-15 22:04:32 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-15 22:04:32 +0200 |
commit | 287b218ce09459ba4d66dd0c4ad6f1c48f525c82 (patch) | |
tree | 24f838e44be4a35bfab21adab63d0127ce0b0017 /depcomp | |
parent | ae9e583a257264f4580d07354e79aac63db72695 (diff) | |
parent | 0c6eb4d4b1e1f4b6e1aee116929863f9b820fdcc (diff) | |
download | egawk-287b218ce09459ba4d66dd0c4ad6f1c48f525c82.tar.gz egawk-287b218ce09459ba4d66dd0c4ad6f1c48f525c82.tar.bz2 egawk-287b218ce09459ba4d66dd0c4ad6f1c48f525c82.zip |
Merge branch 'master' into array-iface
Diffstat (limited to 'depcomp')
-rwxr-xr-x | depcomp | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -74,6 +74,9 @@ tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" +# Avoid interferences from the environment. +gccflag= dashmflag= + # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case @@ -108,7 +111,7 @@ if test "$depmode" = msvc7msys; then fi if test "$depmode" = xlc; then - # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. + # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi @@ -142,13 +145,17 @@ gcc3) ;; gcc) +## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. +## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. +## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like -## -MM, not -M (despite what the docs say). +## -MM, not -M (despite what the docs say). Also, it might not be +## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then |