From e5cae33016a7dc093608aecfe4e737e814d0afa6 Mon Sep 17 00:00:00 2001 From: "Malcolm.Wallace@cs.york.ac.uk" Date: Fri, 5 Jun 2009 09:17:30 +0000 Subject: [PATCH 1/1] nhc98 must build dirUtils.c as well. Fixes this bootstrapping error: Undefined symbols: "___hscore_readdir", referenced from: _FR_System_46Posix_46Internals_46readdir_35 in libHSbase.a(Internals.o) --- Makefile.nhc98 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.nhc98 b/Makefile.nhc98 index 54aab94..8cffa95 100644 --- a/Makefile.nhc98 +++ b/Makefile.nhc98 @@ -2,6 +2,7 @@ THISPKG = base SEARCH = -I$(TOPDIR)/targets/$(MACHINE) -Iinclude \ -I../../prelude/PreludeIO -I../../prelude/`$(LOCAL)harch` EXTRA_H_FLAGS = -H4M -K3M +EXTRA_C_FLAGS = -D__NHC__ EXTRA_HBC_FLAGS = -H16M -A1M DIRS = \ @@ -39,7 +40,7 @@ SRCS = \ Text/Read.hs Text/Show.hs Text/Show/Functions.hs \ Text/ParserCombinators/ReadP.hs Data/Version.hs \ Unsafe/Coerce.hs \ - WCsubst.c \ + WCsubst.c dirUtils.c \ System/Posix/Types.hs System/Posix/Internals.hs \ # Data/String.hs -- 1.7.10.4