Unable to build i386 binary with XCode 4.0

heikkitoivonen avatarheikkitoivonen created an issue

keyring 0.6.2 setup.py has a section to empty ARCHFLAGS environment variable if it detects XCode 4.0. This is preventing building i386 binaries when you have XCode 4.0 installed, because you need to set ARCHFLAGS="-arch i386".

If you build with above flags and do lipo -info /path/to/keyring.so, it should show i386 binary. On Lion with XCode 4.0 I see x86_64.

I believe you should modify the setup code to remove all "-arch ppc\S*" instructions from ARCHFLAGS, not just clear it completely.

Comments (1)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.