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

nagarjun nagarjunreddy.iit@gmail.com
Thu Mar 28 11:06:00 GMT 2013


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.



More information about the Gcc-help mailing list