Skip to content

Commit

Permalink
Never pass -optl-no-pie until tweag/clodl#34 is fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
facundominguez committed Mar 25, 2021
1 parent 377db34 commit fb2f73a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions haskell/private/actions/link.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ def link_binary(
print("WARNING: dynamic linking and profiling don't mix. Omitting -dynamic.\nSee https://ghc.haskell.org/trac/ghc/ticket/15394")
else:
args.add_all(["-pie", "-dynamic"])
elif not hs.toolchain.is_darwin and not hs.toolchain.is_windows:
# See Note [No PIE when linking]
args.add("-optl-no-pie")

# elif not hs.toolchain.is_darwin and not hs.toolchain.is_windows:
# See Note [No PIE when linking]
# args.add("-optl-no-pie")

# When compiling with `-threaded`, GHC needs to link against
# the pthread library when linking against static archives (.a).
Expand Down

0 comments on commit fb2f73a

Please sign in to comment.