diff options
author | Peter Simons <simons@cryp.to> | 2013-12-16 13:55:16 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2013-12-16 21:11:29 +0100 |
commit | edaa56041ceb3185d9c104ca72c457a5e7ae6e03 (patch) | |
tree | 1548c77a6aa280e29def82f49e4cf82987e4ee11 /pkgs/build-support | |
parent | a2b45034b3ff57b42c26a100c674aeb6844e7f9f (diff) |
pkgs/build-support/cabal: configure a proper library rpath for dynamically linked executables
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/cabal/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/cabal/default.nix b/pkgs/build-support/cabal/default.nix index b17f720e56189..d99faf41f88d3 100644 --- a/pkgs/build-support/cabal/default.nix +++ b/pkgs/build-support/cabal/default.nix @@ -156,7 +156,7 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version; (optional (versionOlder "7" ghc.version) (enableFeature self.enableStaticLibraries "library-vanilla")) (optional (versionOlder "7.4" ghc.version) (enableFeature self.enableSharedExecutables "executable-dynamic")) (optional (versionOlder "7" ghc.version) (enableFeature self.doCheck "tests")) - ]; + ] ++ optional self.enableSharedExecutables "--ghc-option=-optl=-Wl,-rpath=$ORIGIN/../lib/${ghc.ghc.name}/${self.pname}-${self.version}"; # GHC needs the locale configured during the Haddock phase. LANG = "en_US.UTF-8"; |