nhc98 must build dirUtils.c as well.
authorMalcolm.Wallace@cs.york.ac.uk <unknown>
Fri, 5 Jun 2009 09:17:30 +0000 (09:17 +0000)
committerMalcolm.Wallace@cs.york.ac.uk <unknown>
Fri, 5 Jun 2009 09:17:30 +0000 (09:17 +0000)
Fixes this bootstrapping error:
  Undefined symbols:
  "___hscore_readdir", referenced from:
      _FR_System_46Posix_46Internals_46readdir_35 in libHSbase.a(Internals.o)

Makefile.nhc98

index 54aab94..8cffa95 100644 (file)
@@ -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