For --use-subdirs, add `-I.' to ALL_MGNUCFLAGS rather than to

Estimated hours taken: 0.25

scripts/Mmake.rules:
	For --use-subdirs, add `-I.' to ALL_MGNUCFLAGS rather than to
	MGNUCFLAGS.  This avoids problems where EXTRA_MGNUCFLAGS and
	MGNUCFLAGS_FOR_TARGET were being interpreted as gcc options
	rather than as mgnuc options, because `-I.' is a gcc option
	rather than an mgnuc option and so all options which follow
	it are assumed to be gcc options.
This commit is contained in:
Fergus Henderson
1999-03-29 10:33:20 +00:00
parent 423b4f1cdc
commit e06fa4993d

View File

@@ -1,5 +1,5 @@
#-----------------------------------------------------------------------------#
# Copyright (C) 1995-1998 The University of Melbourne.
# Copyright (C) 1995-1999 The University of Melbourne.
# This file may only be copied under the terms of the GNU General
# Public License - see the file COPYING in the Mercury distribution.
#-----------------------------------------------------------------------------#
@@ -34,7 +34,7 @@ ifeq ($(MMAKE_USE_SUBDIRS),yes)
MCFLAGS += --use-subdirs
MSCFLAGS += --use-subdirs
MNCFLAGS += --use-subdirs
MGNUCFLAGS += -I.
ALL_MGNUCFLAGS += -I.
endif