delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/09/00:06:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 8 Apr 2004 21:00:45 -0700 (PDT)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Gcc/ld and long command lines (> 32k)
In-Reply-To: <20040408225311.GA29354@coc.bosbc.com>
Message-ID: <Pine.LNX.4.53.0404082052110.1010@gremlin.fruitbat.org>
References: <Pine DOT GSO DOT 4 DOT 50 DOT 0404081719370 DOT 380-100000 AT pjakkur DOT iar DOT se> <6 DOT 0 DOT 1 DOT 1 DOT 0 DOT 20040408115748 DOT 039fb948 AT 127 DOT 0 DOT 0 DOT 1> <Pine DOT GSO DOT 4 DOT 50 DOT 0404082128460 DOT 8775-100000 AT pjakkur DOT iar DOT se> <20040408225311 DOT GA29354 AT coc DOT bosbc DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

On Thu, 8 Apr 2004, Christopher Faylor wrote:

> On Thu, Apr 08, 2004 at 10:07:19PM +0200, Johan Holmberg wrote:
> >A short description of my enironment:
> >
> >- the programs I'm building are C/C++ compilers
> >
> >- I use GCC in Cygwin to get a "second opinion" from another compiler
> >  than the one we use normally (Visual C++).
> >
> >- I use Cons as my build tool (a Perl program).
> >  I use ActiveState Perl (not Cygwin Perl).
> >
> >So yes, I'm working "outside a Cygwin environment".
>
> Ok, so, sorry, but I wasn't thinking clearly.  The '-X' option to mount
> only works when a cygwin programs which invoke another cygwin program.
> If you have a normal windows program running a cygwin program, your only
> option for a longer command line is (shudder) '@'.

Well, Chris, for better or worst, this "feature" does seem to work.  I
did a quick test of this using an @file which is 81k long and it works!
You will need to remount both /usr/bin and /usr/lib with the "--system
--binary -X" options.  Then put your list of objects into @file and run
gcc @file.
For the record, I still feel that a better practice is to do archiving of
object files and link with the library, but if this gets you going, this
time, more power to ya.

> cgf

-- 
Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019