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
This commit is contained in:
Lluís Batlle i Rossell 2010-12-17 20:41:25 +00:00
parent b48b2a7bb4
commit cd6de2880f

View file

@ -21,5 +21,7 @@ stdenv.mkDerivation rec {
sed -e 's/ -ltermcap/ -lncurses/' -i ${makefile} 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"; makeFlags = "-f ${makefile} JS_DIST=\${out} BUILD_OPT=1 JS_READLINE=1";
} }