Skip to content

Instantly share code, notes, and snippets.

@adinapoli
Last active January 9, 2024 06:45
Show Gist options
  • Save adinapoli/bf722db15f72763bf79dff13a3104b6f to your computer and use it in GitHub Desktop.
Save adinapoli/bf722db15f72763bf79dff13a3104b6f to your computer and use it in GitHub Desktop.
diff --git a/compiler/GHC/Linker/Loader.hs b/compiler/GHC/Linker/Loader.hs
index 2456844e91..33dd3def33 100644
--- a/compiler/GHC/Linker/Loader.hs
+++ b/compiler/GHC/Linker/Loader.hs
@@ -1611,7 +1611,6 @@ locateLib interp hsc_env is_hs lib_dirs gcc_dirs lib0
| otherwise = [ "lib" ++ lib ++ lib_tag <.> "a"
, lib <.> "a" -- native code has no lib_tag
, "lib" ++ lib
- , lib
]
lib_tag = if is_hs && loading_profiled_hs_libs then "_p" else ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment