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 | |
parent | a2b45034b3ff57b42c26a100c674aeb6844e7f9f (diff) | |
download | nixlib-edaa56041ceb3185d9c104ca72c457a5e7ae6e03.tar nixlib-edaa56041ceb3185d9c104ca72c457a5e7ae6e03.tar.gz nixlib-edaa56041ceb3185d9c104ca72c457a5e7ae6e03.tar.bz2 nixlib-edaa56041ceb3185d9c104ca72c457a5e7ae6e03.tar.lz nixlib-edaa56041ceb3185d9c104ca72c457a5e7ae6e03.tar.xz nixlib-edaa56041ceb3185d9c104ca72c457a5e7ae6e03.tar.zst nixlib-edaa56041ceb3185d9c104ca72c457a5e7ae6e03.zip |
pkgs/build-support/cabal: configure a proper library rpath for dynamically linked executables
Diffstat (limited to 'pkgs')
-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 b17f720e5618..d99faf41f88d 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"; |