aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-03 13:11:41 +0545
committerMike Frysinger <vapier@gentoo.org>2022-11-04 07:42:31 +0700
commit90db43bb0325ce387da536f4939bfe01e80227b2 (patch)
treee994d482eb04f0f649b66a5942dc3537e66b2b56 /sim/ppc
parent231f62da1d56046f7f7706b5699a7544c2cae2f7 (diff)
downloadgdb-90db43bb0325ce387da536f4939bfe01e80227b2.zip
gdb-90db43bb0325ce387da536f4939bfe01e80227b2.tar.gz
gdb-90db43bb0325ce387da536f4939bfe01e80227b2.tar.bz2
sim: build: switch to libtool for linking
The top-level already sets up a libtool script for the host, so use that when linking rather than invoking CC directly. This will also happen when we (someday) move the building to pure automake.
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in
index 9eec425..2b5a11a 100644
--- a/sim/ppc/Makefile.in
+++ b/sim/ppc/Makefile.in
@@ -522,7 +522,8 @@ 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)
+ $(ECHO_CCLD) $(LIBTOOL) $(AM_V_lt) --tag=CC --mode=link \
+ $(CC) $(CFLAGS) $(LDFLAGS) -o psim$(EXEEXT) main.o $(TARGETLIB) $(BFD_LIB) $(ZLIB) $(ZSTD_LIBS) $(LIBINTL) $(LIBIBERTY_LIB) $(LIBS)
run$(EXEEXT): psim$(EXEEXT)
$(SILENCE) rm -f $@