osx: build afscell only for active architecture 31/12531/3
authorMarcio Barbosa <mbarbosa@sinenomine.net>
Thu, 2 Mar 2017 21:01:48 +0000 (18:01 -0300)
committerBenjamin Kaduk <kaduk@mit.edu>
Thu, 2 Mar 2017 21:49:25 +0000 (16:49 -0500)
The InstallerPlugins framework provided by the MacOSX10.12.sdk does not
define symbols for architecture i386. As a result, the OpenAFS code
cannot be built on OS X 10.12.

To fix this problem, build the afscell xcode project only for active
architecture.

Change-Id: I2a2bd5694826b668fceb7402567fba1d0f128479
Reviewed-on: https://gerrit.openafs.org/12531
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>

src/platform/DARWIN/afscell/afscell.xcodeproj/project.pbxproj

index 9c73890..4981798 100644 (file)
                        isa = XCBuildConfiguration;
                        buildSettings = {
                                ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
-                               ONLY_ACTIVE_ARCH = NO;
+                               ONLY_ACTIVE_ARCH = YES;
                                COPY_PHASE_STRIP = NO;
                                GCC_DYNAMIC_NO_PIC = NO;
                                GCC_ENABLE_FIX_AND_CONTINUE = YES;
                                        x86_64,
                                );
                                ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
-                               ONLY_ACTIVE_ARCH = NO;
+                               ONLY_ACTIVE_ARCH = YES;
                                GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
                                GCC_MODEL_TUNING = G5;
                                GCC_PRECOMPILE_PREFIX_HEADER = YES;