diff --git a/build/macosx/universal/mozconfig.common b/build/macosx/universal/mozconfig.common index 123966eeedf0..596908877ce6 100644 --- a/build/macosx/universal/mozconfig.common +++ b/build/macosx/universal/mozconfig.common @@ -6,9 +6,9 @@ mk_add_options MOZ_UNIFY_BDATE=1 mk_add_options MOZ_POSTFLIGHT_ALL+=build/macosx/universal/flight.mk -# Note, the version (10) is used by libffi's configure. -ac_add_app_options i386 --target=i386-apple-darwin10 -ac_add_app_options x86_64 --target=x86_64-apple-darwin10 +DARWIN_VERSION=`uname -r` +ac_add_app_options i386 --target=i386-apple-darwin$DARWIN_VERSION +ac_add_app_options x86_64 --target=x86_64-apple-darwin$DARWIN_VERSION ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.6.sdk