Bug#433301: gcc-4.1: default target of -M generated rule lacks path
tag 433301 + moreinfo
thanks
- you cite -MT, but use -MM, is that really what you mean?
- please recheck with 4.2 and 4.3/snapshot
Lionel Elie Mamane writes:
> Package: gcc-4.1
> Version: 4.1.2-13
> Severity: normal
>
> "info --node '(gcc.info.gz)Preprocessor Options'" says:
>
> `-MT TARGET'
> Change the target of the rule emitted by dependency generation. By
> default CPP takes the name of the main input file, including any
> path, deletes any file suffix such as `.c', and appends the
> platform's usual object suffix. The result is the target.
>
> But the behaviour is that the path is stripped. E.g., the following
> command:
>
> "gcc" -MM -I "/usr/lib/ocaml/3.09.2"/caml kernel/byterun/coq_memory.c
>
> gives:
>
> coq_memory.o: kernel/byterun/coq_memory.c kernel/byterun/coq_gc.h
>
> instead of
>
> kernel/byterun/coq_memory.o: kernel/byterun/coq_memory.c kernel/byterun/coq_gc.h
Reply to: