Error while including ldfcn.h => Building GCC without COFF?
Ed Schouten
edschouten@il.fontys.nl
Wed Jul 7 07:02:00 GMT 2004
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20040707/82a4de08/attachment.sig>
More information about the Gcc-help
mailing list