Do not use install_name_tool on "executables" built by GHCJS
These executables are really .jsexe directories, and install_name_tool will fail
This commit is contained in:
parent
7fd7cf69af
commit
82bd3a5580
@ -244,7 +244,7 @@ stdenv.mkDerivation ({
|
|||||||
mv $packageConfFile $packageConfDir/$pkgId.conf
|
mv $packageConfFile $packageConfDir/$pkgId.conf
|
||||||
''}
|
''}
|
||||||
|
|
||||||
${optionalString (enableSharedExecutables && isExecutable && stdenv.isDarwin && stdenv.lib.versionOlder ghc.version "7.10") ''
|
${optionalString (enableSharedExecutables && isExecutable && !isGhcjs && stdenv.isDarwin && stdenv.lib.versionOlder ghc.version "7.10") ''
|
||||||
for exe in "$out/bin/"* ; do
|
for exe in "$out/bin/"* ; do
|
||||||
install_name_tool -add_rpath "$out/lib/ghc-${ghc.version}/${pname}-${version}" "$exe"
|
install_name_tool -add_rpath "$out/lib/ghc-${ghc.version}/${pname}-${version}" "$exe"
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user