Re: GNU C compiler options

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

 



manish.jain@xxxxxxxxxx writes:

> I need to compile my program using GCC. Can I specify all options in a file
> and give the file name as an argument to the GCC.

gcc does not support reading the command line options from a file.
But you can do this (on Unix or Cygwin):
    gcc `cat gcc-options`

(You actually can control the options passed to gcc in a file by using
a spec file via the -specs option, but this is hard to use correctly
and somewhat unportable between gcc versions.)

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux