sim: erc32: use libsim.a for common objects

Message ID
State New
Headers show
  • sim: erc32: use libsim.a for common objects
Related show

Commit Message

Philippe Waroquiers via Gdb-patches July 7, 2021, 4:16 a.m.
We're starting to move more objects to the common build that sis did
not need before, so linking them is causing problems (when common
objects end up needing symbols from non-common objects).  Switch it
to the libsim.a archive which will allow the link to pull out only
what it needs.
 sim/erc32/ | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



diff --git a/sim/erc32/ b/sim/erc32/
index 9ca0e3519a27..4196e25f7173 100644
--- a/sim/erc32/
+++ b/sim/erc32/
@@ -41,9 +41,9 @@  SIM_WERROR_CFLAGS =
 SIS_OFILES = exec.o erc32.o func.o help.o float.o
 all: sis$(EXEEXT)
+sis$(EXEEXT): sis.o $(SIS_OFILES) libsim.a $(LIBDEPS)
 	$(CC) $(ALL_CFLAGS) -o sis$(EXEEXT) \
+	  sis.o $(SIS_OFILES) libsim.a $(EXTRA_LIBS)
 # Copy the files into directories where they will be run.
 install-sis: installdirs