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

git at git.haskell.org git at git.haskell.org
Fri Dec 8 05:31:53 UTC 2017


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

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

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

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

    adds -latomic to. ghc-prim


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

c7aa614bc9c342497748e2e997c892d1b736ea0b
 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 e99686a..bad1889 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