sim: ppc: buildsystem changes to accommodate libsframe

Message ID 20221027181543.3349840-1-indu.bhagat@oracle.com
State New
Headers
Series sim: ppc: buildsystem changes to accommodate libsframe |

Commit Message

Indu Bhagat Oct. 27, 2022, 6:15 p.m. UTC
  Hello,

This patch is needed to ensure --enable-targets=all continues to build once the
SFrame support patches land in binutils.

Version 2 of the SFrame support patches were posted here
https://sourceware.org/pipermail/binutils/2022-October/123641.html
and approved earlier
https://sourceware.org/pipermail/binutils/2022-October/123810.html

The gdb/ and sim/ bits that were earlier approved are here:
https://sourceware.org/pipermail/binutils/2022-October/123650.html

As the following is a new diff, please review it and let me know.  Once
reviewed I will include it 

Thanks
Indu
---
 sim/ppc/Makefile.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
  

Patch

diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in
index b0c073b8867..12123d36a66 100644
--- a/sim/ppc/Makefile.in
+++ b/sim/ppc/Makefile.in
@@ -133,6 +133,7 @@  INCLUDES	= -I. -I$(srcdir) $(LIB_INCLUDES) $(BFD_INCLUDES) $(GDB_INCLUDES) -I../
 
 LIBIBERTY_LIB	= ../../libiberty/libiberty.a
 BFD_LIB		= ../../bfd/libbfd.a
+SFRAME_LIB	= ../../libsframe/.libs/libsframe.a
 ZLIB		= $(zlibdir) -lz
 
 
@@ -521,8 +522,8 @@  PACKAGE_SRC = @sim_pk_src@
 PACKAGE_OBJ = @sim_pk_obj@
 
 
-psim$(EXEEXT): $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBINTL_DEP)
-	$(ECHO_CCLD) $(CC) $(CFLAGS) $(LDFLAGS) -o psim$(EXEEXT) main.o $(TARGETLIB) $(BFD_LIB) $(ZLIB) $(ZSTD_LIBS) $(LIBINTL) $(LIBIBERTY_LIB) $(LIBS)
+psim$(EXEEXT): $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(SFRAME_LIB) $(LIBINTL_DEP)
+	$(ECHO_CCLD) $(CC) $(CFLAGS) $(LDFLAGS) -o psim$(EXEEXT) main.o $(TARGETLIB) $(BFD_LIB) $(SFRAME_LIB) $(ZLIB) $(ZSTD_LIBS) $(LIBINTL) $(LIBIBERTY_LIB) $(LIBS)
 
 run$(EXEEXT): psim$(EXEEXT)
 	$(SILENCE) rm -f $@