[commit: ghc] wip/angerman/llvmng: adds -latomic to. ghc-prim (2477a06)

git at git.haskell.org git at git.haskell.org
Fri Dec 8 05:22:49 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/angerman/llvmng
Link       : http://ghc.haskell.org/trac/ghc/changeset/2477a0635cb4871e68b035917838b3713f0490ea/ghc

>---------------------------------------------------------------

commit 2477a0635cb4871e68b035917838b3713f0490ea
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date:   Mon Dec 4 10:56:13 2017 +0800

    adds -latomic to. ghc-prim


>---------------------------------------------------------------

2477a0635cb4871e68b035917838b3713f0490ea
 libraries/ghc-prim/ghc-prim.cabal | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libraries/ghc-prim/ghc-prim.cabal b/libraries/ghc-prim/ghc-prim.cabal
index 9b8c1ac..fc49857 100644
--- a/libraries/ghc-prim/ghc-prim.cabal
+++ b/libraries/ghc-prim/ghc-prim.cabal
@@ -66,6 +66,9 @@ Library
         --         on Windows. Required because of mingw32.
         extra-libraries: user32, mingw32, mingwex
 
+    if os(linux)
+        extra-libraries: atomic
+    
     c-sources:
         cbits/atomic.c
         cbits/bswap.c



More information about the ghc-commits mailing list