pkgs/build-support/cabal: configure a proper library rpath for dynamically linked executables
This commit is contained in:
parent
a2b45034b3
commit
edaa56041c
@ -156,7 +156,7 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
|
|||||||
(optional (versionOlder "7" ghc.version) (enableFeature self.enableStaticLibraries "library-vanilla"))
|
(optional (versionOlder "7" ghc.version) (enableFeature self.enableStaticLibraries "library-vanilla"))
|
||||||
(optional (versionOlder "7.4" ghc.version) (enableFeature self.enableSharedExecutables "executable-dynamic"))
|
(optional (versionOlder "7.4" ghc.version) (enableFeature self.enableSharedExecutables "executable-dynamic"))
|
||||||
(optional (versionOlder "7" ghc.version) (enableFeature self.doCheck "tests"))
|
(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.
|
# GHC needs the locale configured during the Haddock phase.
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user