Generally, you can compile multiple versions of libevent, each with different configuration, and pack all of them in a single binary (universal binary) using the lipo command.
https://developer.apple.com/library/mac/documentation/darwin/reference/manpages/man1/lipo.1.html On Tue, Jun 25, 2013 at 2:16 AM, Vincent Bernat <[email protected]> wrote: > 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 [email protected] with > unsubscribe libevent-users in the body. >
