, cGHC_RUNTIME_DIR
, cGHC_UTILS_DIR
, cGHC_INCLUDE_DIR
+ , cX_CFLAGS
+ , cX_LIBS
] =
[
import_dirs = [],
source_dirs = [],
library_dirs = if installing
- then [ "$libdir" ]
+ then
+#ifdef mingw32_TARGET_OS
+ -- force the dist-provided gcc-lib/ into scope.
+ [ "$libdir", "$libdir/gcc-lib" ]
+#else
+ [ "$libdir" ]
+#endif
else [ ghc_src_dir cGHC_RUNTIME_DIR ],
hs_libraries = [ "HSrts" ],
extra_libraries =
, "PrelIOBase_heapOverflow_closure"
, "PrelIOBase_NonTermination_closure"
, "PrelIOBase_BlockedOnDeadMVar_closure"
+ , "PrelIOBase_Deadlock_closure"
, "PrelWeak_runFinalizzerBatch_closure"
, "__stginit_Prelude"
])
,
extra_libraries = [ "HSstd_cbits" ] ++
# ifdef mingw32_TARGET_OS
- [ "wsock32", "msvcrt" ]
+ [ "wsock32", "msvcrt", "kernel32", "user32" ]
# else
[ ]
# endif
c_includes = [ "HsXlib.h" ],
package_deps = [ "greencard" ],
extra_ghc_opts = [],
- extra_cc_opts = [],
- extra_ld_opts = []
+ extra_cc_opts = [ cX_CFLAGS ],
+ extra_ld_opts = [ cX_LIBS ]
}
,Package {
then [ "$libdir/imports/HGL" ]
else [ "$libdir/hslibs/graphics/lib/x11" ],
source_dirs = [],
- library_dirs = [],
+ library_dirs = if installing
+ then [ "$libdir" ]
+ else [ "$libdir/hslibs/graphics/lib/x11"],
hs_libraries = [ "HSHGL" ],
extra_libraries= [],
include_dirs = [],