From 316dfd77d71187ae7aa2c905e455e421ba2d136f Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Wed, 4 May 2022 14:25:22 +0200 Subject: [PATCH] Avoid spurious output --- Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 01f338b0b43..e4823b5577e 100644 --- a/Makefile +++ b/Makefile @@ -115,11 +115,24 @@ build/autoconf.mk: src/include/autoconf.h # ifeq "$(findstring clean,$(MAKECMDGOALS))" "" ifeq "$(findstring libfreeradius-make,$(MAKECMDGOALS))" "" + +# +# Avoid calling shell if we don't need to build support libraries +# +ifeq "$(wildcard build/lib/.libs/libfreeradius-make-dlopen.${LIBRARY_EXT})","" +BUILD_MAKE_LIBS=yes +endif +ifeq "$(wildcard build/lib/.libs/libfreeradius-make-version.${LIBRARY_EXT})","" +BUILD_MAKE_LIBS=yes +endif + +ifdef BUILD_MAKE_LIBS define n endef -$(info $(subst CC,$nCC,$(shell $(MAKE) VERBOSE=$(VERBOSE) libfreeradius-make-dlopen.a libfreeradius-make-version.a))) +$(info $(subst CC,$nCC,$(shell $(MAKE) VERBOSE=$(VERBOSE) libfreeradius-make-dlopen.a libfreeradius-make-version.a))) +endif ifeq "${LIBRARY_EXT}" "" ifneq "$(findstring Darwin,$(shell hostinfo 2>/dev/null))" "" -- 2.47.3