[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] libevent and universal binaries on OSX



Hi!

I am looking a bit on how to do universal binaries with libevent. An
easy way is to configure with something like this:

        ./configure CC="gcc -arch i386 -arch x86_64" CPP="gcc -E"

However, this is known to cause problems, notably because some
architecture-dependent stuff can be detected during configure and it
will reflect the x86_64 arch and therefore the binaries for i386 will be
bogus.

We can find old instructions for tor on Google with this approach:
 https://svn.torproject.org/svn/tor/tags/tor-0_1_1_25/doc/tor-osx-dmg-creation.txt

Therefore, it seems that libevent can use that. However, when looking at
config.h, I see a lot of precomputed SIZEOF stuff. And I see they are
used in headers. So, I would say that libevent cannot be compiled like
this.

Anyone knows?
-- 
Say what you mean, simply and directly.
            - The Elements of Programming Style (Kernighan & Plauger)
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.