Skip to content

Instantly share code, notes, and snippets.

@vlucas
Created February 11, 2012 17:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vlucas/1802688 to your computer and use it in GitHub Desktop.
Save vlucas/1802688 to your computer and use it in GitHub Desktop.
Mac OS X Architecture Flags
# x386 Architecture
export CFLAGS="-arch i386 $CFLAGS"
export CCFLAGS="-arch i386 $CCFLAGS"
export CXXFLAGS="-arch i386 $CXXFLAGS"
export LDFLAGS="-arch i386 $LDFLAGS"
# x64 Architecture
export CFLAGS="-arch x86_64 $CFLAGS"
export CCFLAGS="-arch x86_64 $CCFLAGS"
export CXXFLAGS="-arch x86_64 $CXXFLAGS"
export LDFLAGS="-arch x86_64 $LDFLAGS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment