mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-12 04:14:06 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user