diff options
author | Jeremy Sowden <azazel@debian.org> | 2025-01-15 18:33:11 +0000 |
---|---|---|
committer | Simon Horman <horms@kernel.org> | 2025-01-18 08:45:53 +0000 |
commit | 3c9cdaef82165cb94bc6762be898b42f6fd1e83d (patch) | |
tree | c65305949291a7aacb025898ad82d9b36c422953 | |
parent | 98d83badc6d77a7bc33685c602435e0100c607f6 (diff) |
Make sure libipvs.a is built before ipvsadmHEADorigin/masterorigin/mainorigin/HEADmaster
There is no explicit rule in the top-level Makefile to build libipvs.a. It
is built by the phony target `libs`. However, there is no guarantee of the
order in which the prerequisites of the `all` target are built, so make may
attempt to link ipvsadm to libipvs.a before it has finished building
libipvs.a.
Add a rule to express the dependency of `$(STATIC_LIBS)` on `libs`.
Signed-off-by: Jeremy Sowden <azazel@debian.org>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@kernel.org>
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -90,6 +90,8 @@ libs: ipvsadm: $(OBJS) $(STATIC_LIBS) $(CC) $(DEFAULT_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) +$(STATIC_LIBS): libs + install: all if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi $(INSTALL) -m 0755 ipvsadm $(SBIN) |