Solaris needs -lrt for the threaded RTS
[ghc-hetmet.git] / compiler / main / StaticFlags.hs
index 3067063..8843bc6 100644 (file)
@@ -494,6 +494,8 @@ way_details =
 #if defined(freebsd_TARGET_OS)
          "-optc-pthread"
         , "-optl-pthread"
+#elif defined(solaris2_TARGET_OS)
+          "-optl-lrt"
 #endif
        ] ),