summaryrefslogtreecommitdiff
path: root/lang/ghc/patches/patch-an
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ghc/patches/patch-an')
-rw-r--r--lang/ghc/patches/patch-an30
1 files changed, 30 insertions, 0 deletions
diff --git a/lang/ghc/patches/patch-an b/lang/ghc/patches/patch-an
new file mode 100644
index 00000000000..c00237179e6
--- /dev/null
+++ b/lang/ghc/patches/patch-an
@@ -0,0 +1,30 @@
+$NetBSD: patch-an,v 1.1 2003/04/29 11:27:47 augustss Exp $
+
+--- ./hslibs/util/Makefile.orig Tue Apr 23 11:31:39 2002
++++ ./hslibs/util/Makefile Fri Mar 28 23:48:02 2003
+@@ -23,16 +23,25 @@
+ PACKAGE_DEPS := $(filter-out posix, $(PACKAGE_DEPS))
+ endif
+
++# hsc2hs needs to find the correct readline includes:
++EXTRA_HSC2HS_OPTS += -I$(ReadlineIncludePath)
++
+ # yeuch, have to get LibsReadline in through CPP to util.conf.in
+ comma = ,
+ PACKAGE_CPP_OPTS += -DLibsReadline='$(patsubst %,$(comma)"%",$(LibsReadline))'
+
++# ... same with ExtraLdOptsReadline:
++PACKAGE_CPP_OPTS += -DExtraLdOptsReadline='$(patsubst %,"%"$(comma),$(ExtraLdOptsReadline))'
++
+ # Remove Readline.hs if it is not wanted or headers are not available.
+ ifeq "$(GhcLibsWithReadline)" "YES"
+ ifneq "$(ReadlineIncludePath)" ""
+ SRC_HC_OPTS += -I$(ReadlineIncludePath)
+ endif
+ STUBOBJS += Readline_stub.$(way_)o
++ ifeq "$(BootingFromHc)" "YES"
++ all :: $(STUBOBJS)
++ endif
+ CLEAN_FILES += Readline_stub.[ch] $(STUBOBJS)
+ else
+ EXCLUDED_SRCS += Readline.hsc Readline_stub.c