Skip to content

Instantly share code, notes, and snippets.

Created June 2, 2014 17:16
Show Gist options
  • Save anonymous/30bcf0623d6dad893507 to your computer and use it in GitHub Desktop.
Save anonymous/30bcf0623d6dad893507 to your computer and use it in GitHub Desktop.
$ git diff .;
$ git diff .
diff --git a/build/autoconf/compiler-opts.m4 b/build/autoconf/compiler-opts.m4
index ef3f85e..ea8dc6f 100644
--- a/build/autoconf/compiler-opts.m4
+++ b/build/autoconf/compiler-opts.m4
@@ -238,7 +238,11 @@ if test "$GNU_CC" -a -n "$MOZ_FORCE_GOLD"; then
/*)
;;
*)
- GOLD=$(which $GOLD)
+ if test -n "$CROSS_COMPILE"; then
+ GOLD=$(which $GOLD)
+ else
+ GOLD=""
+ fi
;;
esac
if test -n "$GOLD"; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment