Solaris needs -lrt for the threaded RTS
authorSimon Marlow <simonmar@microsoft.com>
Tue, 25 Apr 2006 08:28:23 +0000 (08:28 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 25 Apr 2006 08:28:23 +0000 (08:28 +0000)
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
        ] ),