ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/depcomp
(Generate patch)

Comparing ircd-hybrid/trunk/depcomp (file contents):
Revision 1662 by michael, Sat Nov 17 20:11:33 2012 UTC vs.
Revision 1664 by michael, Sun Nov 18 14:33:47 2012 UTC

# Line 74 | Line 74 | tmpdepfile=${tmpdepfile-`echo "$depfile"
74  
75   rm -f "$tmpdepfile"
76  
77 + # Avoid interferences from the environment.
78 + gccflag= dashmflag=
79 +
80   # Some modes work just like other modes, but use different flags.  We
81   # parameterize here, but still list the modes in the big case below,
82   # to make depend.m4 easier to write.  Note that we *cannot* use a case
# Line 108 | Line 111 | if test "$depmode" = msvc7msys; then
111   fi
112  
113   if test "$depmode" = xlc; then
114 <   # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.
114 >   # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
115     gccflag=-qmakedep=gcc,-MF
116     depmode=gcc
117   fi
# Line 142 | Line 145 | gcc3)
145    ;;
146  
147   gcc)
148 + ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
149 + ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
150 + ## (see the conditional assignment to $gccflag above).
151   ## There are various ways to get dependency output from gcc.  Here's
152   ## why we pick this rather obscure method:
153   ## - Don't want to use -MD because we'd like the dependencies to end
154   ##   up in a subdir.  Having to rename by hand is ugly.
155   ##   (We might end up doing this anyway to support other compilers.)
156   ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
157 < ##   -MM, not -M (despite what the docs say).
157 > ##   -MM, not -M (despite what the docs say).  Also, it might not be
158 > ##   supported by the other compilers which use the 'gcc' depmode.
159   ## - Using -M directly means running the compiler twice (even worse
160   ##   than renaming).
161    if test -z "$gccflag"; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines