[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automake and makedepend

From: Ralf Wildenhues
Subject: Re: Automake and makedepend
Date: Fri, 13 May 2005 17:41:11 +0200
User-agent: Mutt/1.4.1i

* Stan Guillory wrote on Thu, May 12, 2005 at 07:56:17PM CEST:
> 1) Should the dependency tracking mechanism in automake work by default
> with Sun Forte C++ 5.4?

I only have access to a different compiler version.  What does yours do
after this series of commands (in a junk directory):

mkdir a b c d
cat >a/ <<EOF
#include "b.h"
#include "c/a.h"
#include <stdio.h>
int x=0;
echo >b/b.h
echo >c/a.h
CC -Ib -I. -xM -c a/
echo $?

and what does it do with

CC -Ib -I. -xM -c a/ -o d/a.o
echo $?

?  Over here, the second one triggers the error
| CC: Suffix mismatch between -o and produced file (should produce .i)

which prevents the dashXmstdout depmode to work.  I believe it's a
compiler bug, but don't know for sure (have only looked very briefly at
the documentation).

However, on this system
  depmode=makedepend source=a/ object=d/a.o libtool=no \
  sh -x path/to/depcomp CC -Ib -I. -c a/ -o d/a.o

works.  So, the question is whether `depcomp' needs to cut out any of
your $CPPFLAGS or $CXXFLAGS which could make makedepend barf.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]