picCCOpts: -dynamic should not entail -optc-fPIC
authorSimon Marlow <marlowsd@gmail.com>
Thu, 17 Jun 2010 11:52:59 +0000 (11:52 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 17 Jun 2010 11:52:59 +0000 (11:52 +0000)
compiler/main/DynFlags.hs

index 031fa07..3422708 100644 (file)
@@ -2206,7 +2206,7 @@ picCCOpts _dflags
     | otherwise
         = []
 #else
-    | opt_PIC || not opt_Static
+    | opt_PIC
         = ["-fPIC", "-U __PIC__", "-D__PIC__"]
     | otherwise
         = []