Fix missing symbols when cross-compiling (#583)
authorZhen Zhang <izgzhen@gmail.com>
Fri, 27 Apr 2018 10:57:59 +0000 (18:57 +0800)
committerAndrey Mokhov <andrey.mokhov@gmail.com>
Fri, 27 Apr 2018 10:57:59 +0000 (11:57 +0100)
src/Settings/Builders/Common.hs

index 36be143..3b8a413 100644 (file)
@@ -29,9 +29,7 @@ cIncludeArgs = do
     gmpIncludeDir   <- getSetting GmpIncludeDir
     ffiIncludeDir   <- getSetting FfiIncludeDir
 
-    cross   <- expr crossCompiling
-    compilerOrGhc <- package compiler ||^ package ghc
-    mconcat [ not (cross && compilerOrGhc) ? arg "-Iincludes"
+    mconcat [ arg "-Iincludes"
             , arg $ "-I" ++ root -/- generatedDir
             , arg $ "-I" ++ path
             , pure . map ("-I"++) . filter (/= "") $ [iconvIncludeDir, gmpIncludeDir]