Skip to content

Instantly share code, notes, and snippets.

@robcee
Created March 25, 2011 18:53
Show Gist options
  • Save robcee/887381 to your computer and use it in GitHub Desktop.
Save robcee/887381 to your computer and use it in GitHub Desktop.
Mac .mozconfig file
# This file specifies the build flags for Firefox. You can use it by adding:
# . $topsrcdir/browser/config/mozconfig
# to the top of your mozconfig file.
# export MOZ_DEBUG_SYMBOLS=1
export CFLAGS="-gdwarf-2"
export CXXFLAGS="-gdwarf-2"
ac_add_options --enable-application=browser
ac_add_options --enable-optimize
# ac_add_options --enable-debug
# For NSS symbols
ac_add_options --enable-debug-symbols="-gdwarf-2"
# Not 32-bit specific.
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options AUTOCONF=autoconf213
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-x86_64-opt
# 32-bit bits
# CC="gcc-4.2 -arch i386"
# CXX="g++-4.2 -arch i386"
# ac_add_options --target=i386-apple-darwin9.2.0
# ac_add_options --enable-macos-target=10.5
# bug 491774. crashreporter won't build in cross compile
# ac_add_options --disable-crashreporter
# mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-x86-opt
# HOST_CC="gcc-4.2"
# HOST_CXX="g++-4.2"
# RANLIB=ranlib
# AR=ar
# AS=$CC
# LD=ld
# STRIP="strip -x -S"
# CROSS_COMPILE=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment