This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: what is the equivalent of -xM1(solaris compiler option) in gcc


Got the following from solaris help doc:

Generates makefile dependencies like -xM, but excludes /usr/include files. 

For example:

more hello.c
#include<stdio.h>
main()
{
    (void)printf(âhello\nâ);
}
ccâ xM hello.c
hello.o: hello.c
hello.o: /usr/include/stdio.h

Compiling with -xM1 does not report header file dependencies:

ccâ xM1 hello.c
hello.o: hello.c



--
View this message in context: http://gcc.1065356.n5.nabble.com/what-is-the-equivalent-of-xM1-solaris-compiler-option-in-gcc-tp925198p925214.html
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]