diff options
author | Tom Tromey <tromey@adacore.com> | 2021-05-04 08:45:46 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2021-05-04 13:19:33 -0600 |
commit | a0c4531a55c86a40b65cdc7af80473856d029a2e (patch) | |
tree | ad2f42b32c4d18266f54a7e1e104dd51ac34a618 /sim/Makefile.am | |
parent | 937a049c9508d6119b90ae48bba319681c845464 (diff) | |
download | gdb-a0c4531a55c86a40b65cdc7af80473856d029a2e.zip gdb-a0c4531a55c86a40b65cdc7af80473856d029a2e.tar.gz gdb-a0c4531a55c86a40b65cdc7af80473856d029a2e.tar.bz2 |
Fix igen build
The igen build fails for me like:
gcc -g -O2 -c ../../binutils-gdb/sim/igen/igen.c -o igen/igen.o
In file included from ../../binutils-gdb/sim/igen/igen.c:26:
../../binutils-gdb/sim/igen/lf.h:22:10: fatal error: ansidecl.h: No such file or directory
This patch fixes the problem by arranging for igen to find the
libiberty includes.
This seems slightly hacky to me, because libiberty is not a "build"
library, so it can't be linked against. However, since igen currently
only includes the header, it seems relatively safe.
2021-05-04 Tom Tromey <tromey@adacore.com>
* Makefile.in: Rebuild.
* Makefile.am (AM_CPPFLAGS): New variable.
Diffstat (limited to 'sim/Makefile.am')
-rw-r--r-- | sim/Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/Makefile.am b/sim/Makefile.am index a68a964..6696adc 100644 --- a/sim/Makefile.am +++ b/sim/Makefile.am @@ -35,6 +35,8 @@ CLEANFILES = DISTCLEANFILES = MOSTLYCLEANFILES = core +AM_CPPFLAGS = -I$(srcroot)/include + COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD) LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ |