Mail Archives: djgpp/2000/03/21/03:48:11
On Mon, 20 Mar 2000, Prashant TR wrote:
>
> I managed to build the cross-compiler for DJGPP using gcc-2.95.2.tar.gz and
> binutils-2.9.1.tar.gz files. With quite a bit of changes to the makefile in
> djcrx203.zip, I finally managed to install it in /home/tr/bin.
>
> Now, whenever I try to compile a program, I get the message "ld: cannot open
> Linker script djgpp.djl". I have this file in /home/tr/bin where xgcc is
> present but the compiler refuses to look into this path. The same appears
> even with crt1.o, i.e. it refuses to find this file unless it appears in
> the same directory as the C program which I'm trying to compile.
>
> Does anyone know why this is happening?
> Thanks in advance.
>
You should have djgpp.djl in one of directories where gcc looks for
libraries. Try running something like
i586-pc-msdosdjgpp-gcc -v foo.c -Wl,--verbose -o foo
and inspect output (of course edit command as needed)
Also if You have glibc-2.1 based system (Slackware-7, RedHat-6.X, etc)
and can install cross-compiler configured with --prefix=/usr (You need
root permissions for that) then You can try getting my recent build of
Linux to DJGPP cross-compiler (gcc-2.95.2) and cross-binutils (14 March
CVS version):
http://www.lanet.lv/~pavenis/djgpp/
As I mentioned glibc-2.1 or above is required (I don't think binaries will
work with glibc-2.0.X)
Andris
- Raw text -