about summary refs log tree commit diff
path: root/pkgs/development/interpreters
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-12-17 20:41:25 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-12-17 20:41:25 +0000
commitcd6de2880faab0475af10898772d92dd79c89cf0 (patch)
treec7b5728dc9320fd6e12d7c92bdd44b5eb17aec93 /pkgs/development/interpreters
parentb48b2a7bb4add41c33f680df0117e3c92cc0515b (diff)
downloadnixlib-cd6de2880faab0475af10898772d92dd79c89cf0.tar
nixlib-cd6de2880faab0475af10898772d92dd79c89cf0.tar.gz
nixlib-cd6de2880faab0475af10898772d92dd79c89cf0.tar.bz2
nixlib-cd6de2880faab0475af10898772d92dd79c89cf0.tar.lz
nixlib-cd6de2880faab0475af10898772d92dd79c89cf0.tar.xz
nixlib-cd6de2880faab0475af10898772d92dd79c89cf0.tar.zst
nixlib-cd6de2880faab0475af10898772d92dd79c89cf0.zip
Fixing the build of spidermonkey (on -fPIC) for mips.
They enable automatically the -fPIC only on x86_64, while I think most non-i686 needs it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=25189
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r--pkgs/development/interpreters/spidermonkey/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/spidermonkey/default.nix b/pkgs/development/interpreters/spidermonkey/default.nix
index b63b38ebf29c..e8d548df5486 100644
--- a/pkgs/development/interpreters/spidermonkey/default.nix
+++ b/pkgs/development/interpreters/spidermonkey/default.nix
@@ -21,5 +21,7 @@ stdenv.mkDerivation rec {
       sed -e 's/ -ltermcap/ -lncurses/' -i ${makefile}
     '';
 
+  CFLAGS = "-DPIC -fPIC -DJS_C_STRINGS_ARE_UTF8";
+
   makeFlags = "-f ${makefile} JS_DIST=\${out} BUILD_OPT=1 JS_READLINE=1";
 }