Commit 81b0f793 authored by simonmar's avatar simonmar
Browse files

[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.
parent d4fc9665
#-----------------------------------------------------------------------------
# $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
#-----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment