# Big Hack that unsets CC / CXX so that mozconfig.common doesn't get # mixed up with host/target CPUs when trying to work out how to do the # universal build. When we redo the build system (bug 648979) this will # go away. if test -e "$topsrcdir/suite/config/version.txt"; then unset CC unset CXX fi
# For NSS symbols export MOZ_DEBUG_SYMBOLS=1 ac_add_options --enable-debug-symbols="-gdwarf-2"
# needed to build on my Mac ac_add_options --without-ccache ac_add_options --with-macos-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
The problem is that my "bad" mozconfig sourced the mozconfigs used in (and tailored for) the official build machines - and it was pretty much coincidence that it had worked before. It is no longer possible to "just include" the mozconfig files used for the official builds and expect it to build.
### Everything below this line is Mac specific build options. ###
# Big Hack that unsets CC / CXX so that configure doesn't get # mixed up with host/target CPUs when trying to work out how to do the # universal build. When we redo the build system (bug 648979) this will # go away. if test -e "$topsrcdir/suite/config/version.txt"; then unset CC unset CXX fi
# $MOZ_BUILD_APP is only defined when sourced by configure. That's not a # problem, because the variables it affects only need to be set for # configure. if test -n "$MOZ_BUILD_APP" ; then if test "$MOZ_BUILD_APP" = "i386" -o "$MOZ_BUILD_APP" = "x86_64"; then TARGET_CPU=$MOZ_BUILD_APP
# $HOST_CXX is presently unused. $HOST_CC will only be used during a cross # compile. HOST_CC=$CC HOST_CXX=$CXX
# It's not strictly necessary to specify -arch during native builds, but it # makes the merged about:buildconfig easier to follow, and it reduces # conditionalized differences between builds. CC="$CC -arch $TARGET_CPU" CXX="$CXX -arch $TARGET_CPU"
# These must be set for cross builds, and don't hurt straight builds. RANLIB=ranlib AR=ar AS=$CC LD=ld STRIP="strip" OTOOL="otool"
# Each per-CPU build should be entirely oblivious to the fact that a # universal binary will be produced. The exception is packager.mk, which # needs to know to look for universal bits when building the .dmg. UNIVERSAL_BINARY=1
export CC CXX HOST_CC HOST_CXX RANLIB AR AS LD STRIP OTOOL fi fi
mozillaZine is an independent Mozilla community and advocacy site. We're not affiliated or endorsed by the Mozilla Corporation but we love them just the same.