1 diff --git a/toolkit/moz.configure b/toolkit/moz.configure
2 index 026e7fa..d27b07f 100644
3 --- a/toolkit/moz.configure
4 +++ b/toolkit/moz.configure
5 @@ -1815,7 +1815,7 @@ with only_when(compile_environment):
6 if target.kernel == "Darwin":
7 if target.cpu == "x86":
8 return ("-DPIC", "-DMACHO")
9 - elif target.cpu == "x86_64":
10 + elif target.cpu == "x86_64" and target.kernel != 'SunOS':
11 return ("-D__x86_64__", "-DPIC", "-DMACHO")
12 elif target.kernel == "WINNT":
13 if target.cpu == "x86":