diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-11-06 22:25:18 +0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-01-10 01:15:23 -0500 |
commit | c58353b7862213558bd5069a8c1e3f0877420b73 (patch) | |
tree | 65e6abe68a98568af4a982079015052772674212 /sim/common | |
parent | 7a1e1f94636358e642631869d0918e758feefd03 (diff) | |
download | gdb-c58353b7862213558bd5069a8c1e3f0877420b73.zip gdb-c58353b7862213558bd5069a8c1e3f0877420b73.tar.gz gdb-c58353b7862213558bd5069a8c1e3f0877420b73.tar.bz2 |
sim: aarch64: move libsim.a creation to top-level
The objects are still compiled in the subdir, but the creation of the
archive itself is in the top-level. This is a required step before we
can move compilation itself up, and makes it easier to review.
The downside is that each object compile is a recursive make instead of
a single one. On my 4 core system, it adds ~100msec to the build per
port, so it's not great, but it shouldn't be a big deal. This will go
away of course once the top-level compiles objects.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/Make-common.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index ab26c49..e14997a 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -89,6 +89,7 @@ SIM_OBJS = SIM_EXTRA_CFLAGS = # List of main object files for `run'. SIM_RUN_OBJS = nrun.o +SIM_LIBSIM = libsim.a # Dependency of `clean' to clean any extra files. SIM_EXTRA_CLEAN = @@ -152,7 +153,7 @@ LINK_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(LDFLAGS_FOR_BUILD) -o $@ RUNTESTFLAGS = -all: libsim.a $(SIM_RUN_OBJS) +all: $(SIM_LIBSIM) $(LIB_OBJS) $(SIM_RUN_OBJS) libsim.a: $(LIB_OBJS) $(SILENCE) rm -f libsim.a |