File ghc-fix-undefined-openpty.patch of Package ghc
diff -Nur ghc-7.4.2/rules/build-package-way.mk ghc-7.4.2-fix-7062/rules/build-package-way.mk
--- ghc-7.4.2/rules/build-package-way.mk 2012-06-06 19:10:25.000000000 +0200
+++ ghc-7.4.2-fix-7062/rules/build-package-way.mk 2012-07-30 08:59:49.000000000 +0200
@@ -74,6 +74,7 @@
"$$($1_$2_HC)" $$($1_$2_$3_ALL_HC_OPTS) $$($1_$2_$3_ALL_OBJS) \
-shared -dynamic -dynload deploy \
-dylib-install-name $(ghclibdir)/`basename "$$@" | sed 's/^libHS//;s/[-]ghc.*//'`/`basename "$$@"` \
+ $$(addprefix -l,$$($1_$2_EXTRA_LIBRARIES)) \
-no-auto-link-packages \
-o $$@
endif