From: Arran Cudbard-Bell Date: Wed, 4 May 2022 12:25:22 +0000 (+0200) Subject: Avoid spurious output X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=316dfd77d71187ae7aa2c905e455e421ba2d136f;p=thirdparty%2Ffreeradius-server.git Avoid spurious output --- 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))" ""