haskell: add the linkWithGold function to link packages with ld.gold
Also support linking the double-conversion package with ld.gold.
This commit is contained in:
@@ -79,6 +79,9 @@ rec {
|
||||
fixupPhase = ":";
|
||||
});
|
||||
|
||||
linkWithGold = drv : appendConfigureFlag drv
|
||||
"--ghc-option=-optl-fuse-ld=gold --ld-option=-fuse-ld=gold --with-ld=ld.gold";
|
||||
|
||||
# link executables statically against haskell libs to reduce closure size
|
||||
justStaticExecutables = drv: overrideCabal drv (drv: {
|
||||
enableSharedExecutables = false;
|
||||
|
||||
Reference in New Issue
Block a user