"$(GHC_LIB_DIR)" \
"$(GHC_RUNTIME_DIR)" \
"$(GHC_UTILS_DIR)" \
- "$(GHC_INCLUDE_DIR)"
+ "$(GHC_INCLUDE_DIR)" \
+ "$(X_CFLAGS)" \
+ "$(X_LIBS)"
+
+# the latter two are needed to setup the package details for hslibs/xlib
SRC_HC_OPTS += -fglasgow-exts -cpp
-ghc_407_at_least = $(shell if (test $(GhcCanonVersion) -ge 4070); then echo YES; else echo NO; fi)
+ghc_407_at_least = $(shell if (test $(GhcCanonVersion) -ge 407); then echo YES; else echo NO; fi)
ifeq "$(ghc_407_at_least)" "YES"
SRC_HC_OPTS += -package concurrent -package text