From: SourceForge.net <no...@so...> - 2006-06-25 21:24:40
|
Patches item #1511947, was opened at 2006-06-25 00:25 Message generated for change (Comment added) made by rkerkhof You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=311118&aid=1511947&group_id=11118 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: new feature Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ruben Kerkhof (rkerkhof) Assigned to: Nobody/Anonymous (nobody) Summary: Patch to build Universal Binary on OSX Initial Comment: Hi, I attached a small patch to create an Universal Binary package on OSX. After applying the patch, you have to run ./configure CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" LDFLAGS="-arch ppc -arch i386" make and the resulting binary will be an universal one: wodan:~/src/privoxy/dist/current ruben$ lipo -info privoxy Architectures in the fat file: privoxy are: ppc i386 ---------------------------------------------------------------------- >Comment By: Ruben Kerkhof (rkerkhof) Date: 2006-06-25 23:24 Message: Logged In: YES user_id=1545524 I'm a complete autoconf newbie, but the attached patch should work from 10.4.4 onwards. I've got no idea how to detact the path to the sdk with autoconf though. I also changed the build script, so it detects the version of OSX, and builds only if we're on 10.4.4 or higher. I've attached both patches. ---------------------------------------------------------------------- Comment By: David Schmidt (david__schmidt) Date: 2006-06-25 13:36 Message: Logged In: YES user_id=249980 Ruben - I committed the patch for build-sh. But I think we want to do the OSX Intel makefile support a little differently. Take a look at configure.in, around line 1035. That's where, during the config process, we decide if a box is running OSX or not. What we want to do is set up compiler switches, etc. there if we find ourselves in a OSX 10.4(+) environment. (And, if we can get away without hardcoding a path to the build tools... all the better.) ---------------------------------------------------------------------- Comment By: Ruben Kerkhof (rkerkhof) Date: 2006-06-25 03:40 Message: Logged In: YES user_id=1545524 I've added a modified version of osxsetup/build. This script builds an universal binary package without the need to use PackageMaker afterwards. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=311118&aid=1511947&group_id=11118 |