[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] libevent and universal binaries on OSX
- To: libevent-users <libevent-users@xxxxxxxxxxxxx>
- Subject: [Libevent-users] libevent and universal binaries on OSX
- From: Vincent Bernat <bernat@xxxxxxxx>
- Date: Tue, 25 Jun 2013 01:16:27 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Mon, 24 Jun 2013 19:16:37 -0400
- Dkim-signature: v=1; a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:subject :date:message-id:mime-version:content-type; s=postfix; bh=0zhXhL lBEUScWdtfVs0bfR8g1n0=; b=QAsz/vIepWClE9oOPz8Ku+I7/WKGL/FI9ZjiuF YwuqIquTtLNYtw9Q6WYIVr+Gkyoe0ajMp9TQhEzhh2oHKl2aRz2GFXN/9WttWfM0 wY4r9DZzC68lJ44RNgXGlSSrmm7LxwoKcM4tAWTy5o07WgBU8i+aE5TY41H/TdWd f4Fhk=
- Domainkey-signature: a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=postfix; b= NpyehvsgI8rWkWXlw1zTmiXfBBPdi+BZBizppl6Fp0/Kmd9e7/RRCi0N6gXtzza2 RPyy4+mZ6vPUJXnY5wNkWK2auYofFwVUgGJkBoMv74j7+d2jpR5+3U737ROTcaoc tySRuDAKeJ5Oi+h7QnIr6TA8qNaIKRtdz/4Gp7TSzNA=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
- User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (gnu/linux)
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.