Mail Archives: djgpp-workers/2001/08/24/06:19:08
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
- Raw text -