From 81b0f793956eb31bfb90cee9c7b524eaeba57dfc Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 10 Jul 2002 08:34:19 +0000 Subject: [PATCH] [project @ 2002-07-10 08:34:19 by simonmar] Fix a bug in the handling of libbfd - we should be checking for DEBUG in $(GhcRtsHcOpts) not $(GhcHcOpts), and we can get HAVE_LIBBFD from config.h so there's no need to unconditionally define USING_LIBBFD. --- ghc/rts/Makefile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/ghc/rts/Makefile b/ghc/rts/Makefile index d1334a3..c18b4a6 100644 --- a/ghc/rts/Makefile +++ b/ghc/rts/Makefile @@ -1,5 +1,5 @@ #----------------------------------------------------------------------------- -# $Id: Makefile,v 1.71 2002/06/25 15:49:58 mthomas Exp $ +# $Id: Makefile,v 1.72 2002/07/10 08:34:19 simonmar Exp $ # # This is the Makefile for the runtime-system stuff. # This stuff is written in C (and cannot be written in Haskell). @@ -39,14 +39,6 @@ NON_HS_PKG = YES # grab sources from these subdirectories ALL_DIRS = hooks parallel -ifeq "$(HaveLibGmp)" "YES" -PACKAGE_CPP_OPTS += -DHAVE_LIBGMP -endif - -ifeq "$(HaveLibMingwEx)" "YES" -PACKAGE_CPP_OPTS += -DHAVE_LIBMINGWEX -endif - ifneq "$(DLLized)" "YES" EXCLUDED_SRCS += RtsDllMain.c else @@ -127,8 +119,12 @@ endif endif # If -DDEBUG is in effect, adjust package conf accordingly.. -ifneq "$(strip $(filter -DDEBUG,$(GhcHcOpts)))" "" -PACKAGE_CPP_OPTS += -DDEBUG -DUSING_LIBBFD +ifneq "$(strip $(filter -optc-DDEBUG,$(GhcRtsHcOpts)))" "" +PACKAGE_CPP_OPTS += -DDEBUG +endif + +ifeq "$(HaveLibMingwEx)" "YES" +PACKAGE_CPP_OPTS += -DHAVE_LIBMINGWEX endif #----------------------------------------------------------------------------- -- 1.7.10.4