From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10601 invoked by alias); 3 Aug 2005 05:07:08 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 10419 invoked by uid 22791); 3 Aug 2005 05:06:56 -0000 Received: from yosemite.airs.com (HELO yosemite.airs.com) (205.217.158.180) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Wed, 03 Aug 2005 05:06:56 +0000 Received: (qmail 27798 invoked by uid 10); 3 Aug 2005 05:06:54 -0000 Received: (qmail 4718 invoked by uid 500); 3 Aug 2005 05:06:47 -0000 Mail-Followup-To: gcc-help@gcc.gnu.org, manish.jain@in.abb.com To: manish.jain@in.abb.com Cc: gcc-help@gcc.gnu.org Subject: Re: GNU C compiler options References: From: Ian Lance Taylor Date: Wed, 03 Aug 2005 05:07:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-08/txt/msg00053.txt.bz2 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