[PATCH] Use FFI_DECLARE macros
Mladen Turk
mturk@redhat.com
Wed Feb 24 17:40:00 GMT 2010
On 02/24/2010 06:31 PM, Dan Witte wrote:
> ----- "Mladen Turk"<mturk@redhat.com> wrote:
>
>> However I'll make another patch that would allow to
>> build eaither static or dynamic library.
>> This would however require that one wishing to use the static
>> library would need to define -DLIBFFI_DECLARE_STATIC before
>> including ffi.h
>
> This should be a substitution in ffi.h.in, no? Just like
>
> #define @TARGET@
>
> for the target arch. Perhaps called @LINKAGE@, with FFI_DECLARE and FFI_EXPORT #defined appropriately immediately afterward.
>
Right this is one of the options.
Using define in client code allows to ship the dynamic
and static lib with the same set of headers.
Building Mac OSX fat binaries is another issue I'm
chasing and both the @TARGET@ and some other configure
time directives are just designed for a single platform/cpu
usage.
Regards
--
^TM
More information about the Libffi-discuss
mailing list