From 8989a32d34654fd2475044b645389df8b6a00578 Mon Sep 17 00:00:00 2001 From: Maciek Starzyk Date: Wed, 10 Dec 2014 22:43:42 +0100 Subject: [PATCH] j: Fix building libj.so --- pkgs/development/interpreters/j/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/interpreters/j/default.nix b/pkgs/development/interpreters/j/default.nix index 9c09038051ef..3668fedf0518 100644 --- a/pkgs/development/interpreters/j/default.nix +++ b/pkgs/development/interpreters/j/default.nix @@ -37,14 +37,19 @@ rec { builtins.trace "assuming ${a.stdenv.system} is 32 bits" "32"; doBuildJ = a.fullDepEntry '' - sed -i bin/jconfig -e 's@bits=32@bits=${bits}@g; s@readline=0@readline=1@; s@LIBREADLINE=""@LIBREADLINE=" -lreadline "@' + sed -i bin/jconfig -e ' + s@bits=32@bits=${bits}@g; + s@readline=0@readline=1@; + s@LIBREADLINE=""@LIBREADLINE=" -lreadline "@; + s@-W1,soname,libj.so@-Wl,-soname,libj.so@ + ' sed -i bin/build_libj -e 's@>& make.txt@ 2>\&1 | tee make.txt@' touch *.c *.h - sh bin/build_jconsole - sh bin/build_libj - sh bin/build_defs - sh bin/build_tsdll + sh -o errexit bin/build_jconsole + sh -o errexit bin/build_libj + sh -o errexit bin/build_defs + sh -o errexit bin/build_tsdll sed -i j/bin/profile.ijs -e "s@userx=[.] *'.j'@userx=. '/.j'@; s@bin,'/profilex.ijs'@user,'/profilex.ijs'@ ;