From: Ian Lance Taylor <ian@airs.com>
To: manish.jain@in.abb.com
Cc: gcc-help@gcc.gnu.org
Subject: Re: GNU C compiler options
Date: Wed, 03 Aug 2005 05:07:00 -0000 [thread overview]
Message-ID: <m38xzjk3rs.fsf@gossamer.airs.com> (raw)
In-Reply-To: <OF15407C9A.E447A175-ON65257052.001640AF-65257052.00164FAA@in.abb.com>
manish.jain@in.abb.com 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
next prev parent reply other threads:[~2005-08-03 5:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-03 4:04 manish.jain
2005-08-03 5:07 ` Ian Lance Taylor [this message]
2005-08-03 5:07 ` Alessandro Madruga Correia
2005-08-03 13:19 ` Ishwar Rattan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m38xzjk3rs.fsf@gossamer.airs.com \
--to=ian@airs.com \
--cc=gcc-help@gcc.gnu.org \
--cc=manish.jain@in.abb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).