This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Mac OS X cross compile for i386-elf


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]