From: pavenis AT lanet DOT lv Message-ID: To: Eli Zaretskii , djgpp-workers AT delorie DOT com Date: Wed, 25 Aug 1999 14:08:08 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: new GCC port References: In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.12a) Reply-To: djgpp-workers AT delorie DOT com Seems that works. Restored original dxe.ld in $DJDIR/lib and tried to build and suceeded. Only one comment: Output was: ./../../hostbin/dxegen.exe ./../../bin/emu387.dxe __emu_entry src/emu387.o id_em u.o src/emudummy.o -L../../lib d:/djgpp/lib/gcc-lib/djgpp/2.951/libgcc.a -lc d:/ djgpp/lib/gcc-lib/djgpp/2.951/libgcc.a ld -X -S -r -o dxe__tmp.o -L../.././lib src/emu387.o id_emu.o src/emudummy.o -L. ./../lib d:/djgpp/lib/gcc-lib/djgpp/2.951/libgcc.a -lc d:/djgpp/lib/gcc-lib/djgp p/2.951/libgcc.a -T dxe.ld I think we should expect something like: ld -X -S -r -o dxe__tmp.o -L../.././lib src/emu387.o id_emu.o src/emudummy.o -Ld:/djgpp/lib d:/djgpp/lib/gcc-lib/djgpp/2.951/libgcc.a -lc d:/djgpp/lib/gcc-lib/djgp p/2.951/libgcc.a -T dxe.ld ($DJDIR/lib should always be added after paths specified explicitly) I'm not using DXE myself so I didn't mess with dxegen.c more. Andris On 25 Aug 99, at 12:42, Eli Zaretskii wrote: > > 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 "); > > > >