From fb2f73ad3ce25aa64b54be9f42fef145d48cb6aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Facundo=20Dom=C3=ADnguez?= Date: Wed, 2 Dec 2020 22:23:55 +0000 Subject: [PATCH] Never pass -optl-no-pie until https://github.com/tweag/clodl/issues/34 is fixed. --- haskell/private/actions/link.bzl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/haskell/private/actions/link.bzl b/haskell/private/actions/link.bzl index 24ddd585f6..3bcc64b5ec 100644 --- a/haskell/private/actions/link.bzl +++ b/haskell/private/actions/link.bzl @@ -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).