From: pavenis AT lanet DOT lv To: "Eli Zaretskii" , djgpp-workers AT delorie DOT com Date: Fri, 24 Aug 2001 13:19:00 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: gcc-3.0.1 and Win2k Message-ID: <3B865444.899.9C2B20@localhost> In-reply-to: <8011-Fri24Aug2001130541+0300-eliz@is.elta.co.il> References: <3B8643C0 DOT 19077 DOT 5BA1DC AT localhost> (pavenis AT lanet DOT lv) X-mailer: Pegasus Mail for Win32 (v3.12c) Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 24 Aug 2001, at 13:05, Eli Zaretskii wrote: > > From: pavenis AT lanet DOT lv > > Date: Fri, 24 Aug 2001 12:08:32 +0300 > > > > Shouldn't it be more correct to use script from from the source tree: > > DJGPP_DJL := $(shell pwd)/$(TOP)/../../lib/djgpp.djl > > I don't think so: that could mean a chicken-and-egg problem. For > example, the script in the djlsr distribution might not work with the > version of GCC used to build the library. Linker script is used by binutils not gcc. Only thing gcc.exe does is to tell linker to use specified linker script. Also how is user going to use newly built library in this case. I think we can expect him to install reasonable fresh binutils > Also, the above requires a pwd command, which might not be installed. > We are trying to avoid requesting any additional packages beyond the > absolute minimum. I thought about that. Why not to add correspnding command to misc.exe: *** djgpp/src/misc.c~3 Fri Nov 14 21:53:06 1997 --- djgpp/src/misc.c Fri Aug 24 12:26:02 2001 *************** main(int argc, char **argv) *** 74,79 **** --- 74,84 ---- unlink(argv[i]); } + if (argc > 1 && strcmp(argv[1], "pwd") == 0) + { + printf ("%s\n",getcwd(NULL,FILENAME_MAX)); + } + /* No args, just like "true" which MS-DOS doesn't have */ return 0; } > I think the best way is to use the script which comes with the > compiler used to compile the library: it's guaranteed to work (if it > doesn't, they don't have a working installation). There should be no problems if binutils is not too old Andris