Mail Archives: djgpp-workers/1999/08/25/08:38:57
On Mon, 23 Aug 1999 pavenis AT lanet DOT lv wrote:
> Found one problem: lib/dxe.ld should also support long section names.
Fixed. Thanks.
> Also building emu387.dxe takes dxe.ld from $DJDIR/lib but not ../../lib
> when making in src/libemu. As result after patch build still fails as I'm
> not building under DJGPP dierctory tree.
Does the following solve the problem?
*** src/dxe/dxegen.c~0 Sat Dec 12 17:23:42 1998
--- src/dxe/dxegen.c Tue Aug 24 14:06:18 1999
*************** int main(int argc, char **argv)
*** 96,111 ****
strcpy(command, "ld");
#endif
strcat(command, " -X -S -r -o dxe__tmp.o -L");
! libdir = getenv("DJDIR");
! if (!libdir)
{
! libdir = getenv("TOP");
if (!libdir)
{
fprintf(stderr, "Error: neither DJDIR nor TOP are set in environment\n");
exit(1);
}
- strcat(command, "../../");
}
strcat(command, libdir);
strcat(command, "/lib ");
--- 96,112 ----
strcpy(command, "ld");
#endif
strcat(command, " -X -S -r -o dxe__tmp.o -L");
! libdir = getenv("TOP");
! if (libdir)
! strcat(command, "../../");
! else
{
! libdir = getenv("DJDIR");
if (!libdir)
{
fprintf(stderr, "Error: neither DJDIR nor TOP are set in environment\n");
exit(1);
}
}
strcat(command, libdir);
strcat(command, "/lib ");
- Raw text -