This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Mac OS X cross compile for i386-elf
- From: Ian Lance Taylor <iant at google dot com>
- To: "Ben Abernathy" <ben dot abernathy at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 29 Aug 2007 08:07:55 -0700
- Subject: Re: Mac OS X cross compile for i386-elf
- References: <7418a5320708281142s39b8da5ta86e88eaf6a10e99@mail.gmail.com>
"Ben Abernathy" <ben.abernathy@gmail.com> writes:
> ../../../gcc-4.2.0/libssp/ssp.c: In function '__guard_setup':
> ../../../gcc-4.2.0/libssp/ssp.c:70: warning: implicit declaration of
> function 'open'
> ../../../gcc-4.2.0/libssp/ssp.c:70: error: 'O_RDONLY' undeclared
> (first use in this function)
libssp basically expects to run on a Unix like system. You only need
libssp if you want to compile with -fstack-protector. The quick fix
will be to pass --disable-libssp when you run configure, and then
avoid using -fstack-protector.
The complicated fix will be to make libssp work on an embedded
system. Not for the faint of heart.
Ian