forked from Imagelibrary/binutils-gdb
sim: Add SIM_EXTRA_CFLAGS after CSEARCH.
The bfin sim adds include paths for the SDL libraries. These include paths might include headers for different version of binutils. Move SIM_EXTRA_CFLAGS after CSEARCH to ensure local includes are always preferred to external includes. sim/common/ChangeLog: * Make-common.in (CONFIG_CFLAGS): Remove SIM_EXTRA_CFLAGS. (ALL_CLAGS, COMMON_DEP_CFLAGS): Add SIM_EXTRA_CFLAGS after CSEARCH.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2021-04-15 John Baldwin <jhb@FreeBSD.org>
|
||||
|
||||
* Make-common.in (CONFIG_CFLAGS): Remove SIM_EXTRA_CFLAGS.
|
||||
(ALL_CLAGS, COMMON_DEP_CFLAGS): Add SIM_EXTRA_CFLAGS after
|
||||
CSEARCH.
|
||||
|
||||
2021-04-12 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* sim-cpu.c (sim_cpu_alloc_all): Delete 3rd arg. Delete 2nd arg to
|
||||
|
||||
@@ -227,17 +227,16 @@ CONFIG_CFLAGS = \
|
||||
$(SIM_SCACHE) \
|
||||
$(SIM_WARN_CFLAGS) \
|
||||
$(SIM_WERROR_CFLAGS) \
|
||||
$(SIM_HARDWARE) \
|
||||
$(SIM_EXTRA_CFLAGS)
|
||||
$(SIM_HARDWARE)
|
||||
CSEARCH = -I. -I$(srcdir) -I../common -I$(srccom) \
|
||||
-I../../include -I$(srcroot)/include \
|
||||
-I../../bfd -I$(srcroot)/bfd \
|
||||
-I../../opcodes -I$(srcroot)/opcodes \
|
||||
@INCINTL@
|
||||
ALL_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH) $(CFLAGS)
|
||||
ALL_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH) $(SIM_EXTRA_CFLAGS) $(CFLAGS)
|
||||
BUILD_CFLAGS = $(CFLAGS_FOR_BUILD) $(CSEARCH)
|
||||
|
||||
COMMON_DEP_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH)
|
||||
COMMON_DEP_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH) $(SIM_EXTRA_CFLAGS)
|
||||
|
||||
ZLIB = @zlibdir@ -lz
|
||||
LIBIBERTY_LIB = ../../libiberty/libiberty.a
|
||||
|
||||
Reference in New Issue
Block a user