* Error while including ldfcn.h => Building GCC without COFF?
@ 2004-07-07 7:02 Ed Schouten
0 siblings, 0 replies; only message in thread
From: Ed Schouten @ 2004-07-07 7:02 UTC (permalink / raw)
To: gcc-help
[-- Attachment #1: Type: text/plain, Size: 1317 bytes --]
Hello guys,
A few days ago my Linux kit for the Playstation2 arrived. It was shipped
with GCC 2.95.2, which was a little old for me.
While searching the internet, I found a patch for GCC 3.2.2, which is
good enough for me:
http://www.oopo.net/consoledev/files/gcc-3.2.2-PS2-20040526.patch
After applying the patch, I configured GCC with:
../gcc-3.2.2/configure --prefix=/tools \
--with-local-prefix=/tools \
--disable-nls --enable-shared \
--enable-languages=c \
--host=mips64r5900el-scei-elf
Configuring GCC goes without a single problem. But while making GCC with
the following command:
make BOOT_LDFLAGS="-static" bootstrap
I get an error; it can't seem to "#include <ldfcn.h>" in "gcc/collect2.
c" because it does not exist.
After I looked in gcc/collect.c, I found the following piece of code:
#ifdef OBJECT_FORMAT_COFF
-cut-
#include <ldfcn.h>
-cut-
#endif /* OBJECT_FORMAT_COFF */
The option 'OBJECT_FORMAT_COFF' seems to be responsible for including
the file.
So my question is: Is it possible to build GCC without support for
COFF?
Yours,
--
Ed Schouten
<edschouten@il.fontys.nl>
GnuPG key: gpg --keyserver pgp.mit.edu --recv-keys 0xD6A1AF3E
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-07 7:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-07 7:02 Error while including ldfcn.h => Building GCC without COFF? Ed Schouten
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).