This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi 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: [PATCH] Use FFI_DECLARE macros


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


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