Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Cherry-pick: linking: Don't use --ghc-option=-optl-lm, use `extra-lib…
Browse files Browse the repository at this point in the history
…raries: m` instead.

Fixes

  ld.gold: fatal error: cannot mix -r with dynamic object

error for dynamic linking (also in profiling).

See NixOS/nixpkgs#24692 (comment)

Cherry-Picked-From: 8f81fb0
Cherry-Picked-By: Niklas Hambüchen <[email protected]>
  • Loading branch information
nh2 committed Jul 27, 2017
1 parent 97850b1 commit 8354659
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cardano-sl.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ executable cardano-node
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
-- ld.gold needs these explicitly
extra-libraries: m

default-extensions: DeriveDataTypeable
DeriveGeneric
Expand Down

0 comments on commit 8354659

Please sign in to comment.