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

Bug#433301: gcc-4.1: default target of -M generated rule lacks path



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

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (200, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.21+deb-4+64bit
Locale: LANG=fr_LU.UTF-8, LC_CTYPE=fr_LU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-4.1 depends on:
ii  binutils               2.17cvs20070426-8 The GNU assembler, linker and bina
ii  cpp-4.1                4.1.2-13          The GNU C preprocessor
ii  gcc-4.1-base           4.1.2-13          The GNU Compiler Collection (base 
ii  libc6                  2.6-2             GNU C Library: Shared libraries
ii  libgcc1                1:4.2-20070707-1  GCC support library

Versions of packages gcc-4.1 recommends:
ii  libc6-dev                     2.6-2      GNU C Library: Development Librari
pn  libmudflap0-dev               <none>     (no description available)

-- no debconf information



Reply to: