Message-ID: <3AA03539.F5CF05AE@home.com> From: "Edward F. Sowell" X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Where does command line length limitation come from? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 40 Date: Fri, 02 Mar 2001 23:56:41 GMT NNTP-Posting-Host: 24.0.195.218 X-Complaints-To: abuse AT home DOT net X-Trace: news1.bnapk1.occa.home.com 983577401 24.0.195.218 (Fri, 02 Mar 2001 15:56:41 PST) NNTP-Posting-Date: Fri, 02 Mar 2001 15:56:41 PST Organization: Excite AT Home - The Leader in Broadband http://home.com/faster To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Phil, Here is a snip from notes I kept when porting some stuff to DJGPP: Also, even though the GNU make program accepts long command within makefiles, this does not mean that make itself can be invoked with a long command line. In particular, if GNU make is spawned from a typical PC C++ compiled program, the command line gets chopped to 126 characters, whereas the PC make program (nmake, smake, Borland make) do not. The only work-around is to compile the program from which the spawn call to GNU make is made with g++. Ed Sowell Philip Boucherat wrote: > Hi, > > I finally got round to building a M68K cross compiler from the V2.952 > gcc sources using djgpp on Windows 95 as my native compiler, but all the > tools I've built have got a command line length limit of around 160 > characters. The only reason I tried doing this in the first place was to > get round this limitation on the V2.7.2 tools I got from > ftp.lysator.liu.se > > Is this limitation something in the shell or is it built in to the tools > I built? Or maybe neither of these ... > > I don't think it's the shell because the djgpp compiler seem to accepts > command lines of any length. > > Cheers, > > Phil > > -- > Philip Boucherat