From 38ca3fedc69a4ec94446252f5a230d991356cd51 Mon Sep 17 00:00:00 2001 From: simonpj Date: Tue, 26 Jun 2001 11:07:55 +0000 Subject: [PATCH] [project @ 2001-06-26 11:07:55 by simonpj] Add #include for SysTools --- ghc/compiler/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index c7b1fc2..b103a00 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.164 2001/06/25 21:08:01 sof Exp $ +# $Id: Makefile,v 1.165 2001/06/26 11:07:55 simonpj Exp $ TOP = .. include $(TOP)/mk/boilerplate.mk @@ -273,6 +273,13 @@ main/DriverUtil_HC_OPTS = -fno-cse main/Finder_HC_OPTS = -fno-cse main/SysTools_HC_OPTS = -fno-cse +# The #include is vital for the via-C route, else the C +# compiler doesn't realise that the stcall foreign imports are indeed +# stdcall, and doesn't generate the Foo@8 name for them +ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +main/SysTools_HC_OPTS += '-\#include ' +endif + # ---------------------------------------------------------------------------- # C compilations -- 1.7.10.4