Copy libffi into place
authorMoritz Angermann <moritz.angermann@gmail.com>
Mon, 4 Jan 2016 12:27:15 +0000 (20:27 +0800)
committerMoritz Angermann <moritz.angermann@gmail.com>
Mon, 4 Jan 2016 12:27:15 +0000 (20:27 +0800)
rts needs libffi as libCff in rts/stage1/build. This fixes #89

src/Rules/Copy.hs

index 3f33d9c..bcd1f1e 100644 (file)
@@ -21,7 +21,9 @@ copyRules = do
         when (length ffiHPaths /= 1) $
             putError $ "copyRules: exactly one ffi.h header expected"
                      ++ "(found: " ++ show ffiHPaths ++ ")."
+        
         copyFile (takeDirectory (head ffiHPaths) -/- takeFileName ffih) ffih
+        copyFile libffiLibrary (targetPath Stage1 rts -/- "build" -/- "libCffi.a")
 
     "inplace/lib/template-hsc.h"    <~ pkgPath hsc2hs
     "inplace/lib/platformConstants" <~ derivedConstantsPath