adds -latomic to. ghc-prim
authorMoritz Angermann <moritz.angermann@gmail.com>
Mon, 4 Dec 2017 02:56:13 +0000 (10:56 +0800)
committerMoritz Angermann <moritz.angermann@gmail.com>
Mon, 5 Feb 2018 01:51:23 +0000 (09:51 +0800)
libraries/ghc-prim/ghc-prim.cabal

index f395c9f..2b860e6 100644 (file)
@@ -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