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

git at git.haskell.org git at git.haskell.org
Wed Feb 7 06:39:46 UTC 2018


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

On branch  : wip/angerman/llvmng
Link       : http://ghc.haskell.org/trac/ghc/changeset/79b25d14d22b6b596d90f853f3f748327c449a32/ghc

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

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

    adds -latomic to. ghc-prim


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

79b25d14d22b6b596d90f853f3f748327c449a32
 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 f395c9f..2b860e6 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