Issue 8461: PythonLauncher universal build fails due to missing -arch and -sysroot (original) (raw)
Fixes for Issue8366 corrected build failures with universal builds on OS X due to changes in the settings of CFLAGS and BASECFLAGS, which had caused -arch values to be added to both CFLAGS and BASECFLAGS. The Mac Makefile for the PythonLauncher app needs to be changed as well, otherwise universal builds can now fail with errors like:
ld warning: in FileSettings.o, file is not of required architecture ld warning: in MyAppDelegate.o, file is not of required architecture ld warning: in MyDocument.o, file is not of required architecture ld warning: in PreferencesWindowController.o, file is not of required architecture ld warning: in doscript.o, file is not of required architecture ld warning: in main.o, file is not of required architecture Undefined symbols for architecture i386: "_main", referenced from: __start in crt1.o ld: symbol(s) not found for architecture i386
The attached patch corrects the problem.
I've fixed this issue in all branches and can now do clean builds.
BTW. Builds with the 10.4u SDK on OSX fail at the moment for 2.7 and 3.2, that's due to issue 7724, I've attached a patch to that issue that should fix it (for the trunk, porting it to 3.2 should be trivial).