This is the mail archive of the
libffi-discuss@sources.redhat.com
mailing list for the libffi project.
Re: libffi on OpenBSD x86
- From: Thomas Heller <theller at python dot net>
- To: libffi-discuss at sources dot redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 20 Oct 2004 15:07:18 +0200
- Subject: Re: libffi on OpenBSD x86
- References: <mzyhpmsg.fsf@python.net>
Thomas Heller <theller@python.net> writes:
> I'm trying to build libffi on OpenBSD x86 3.5.
>
> Adding this line to libffi/configure was easy:
>
Forgot to include this, sorry:
case "$host" in
...
i*86-*-openbsd*) TARGET=X86; TARGETDOR=X86;;
...
>
>
> but it seems the stack smashing protection that OpenBSD uses prevents
> ffi_call from working correctly.
> I found the -fno-stack-protector command line option for gcc, and
> specifying this did the trick.
>
> Now I'm not sure if there is a pragma which allows to disable the stack
> protector from within the C source file, or should it be added to
> libffi/configure somehow, or is there a way to pass this switch when
> running libffi/configure?
>
> Thomas