]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Avoid spurious output
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 4 May 2022 12:25:22 +0000 (14:25 +0200)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 4 May 2022 12:25:22 +0000 (14:25 +0200)
Makefile

index 01f338b0b43f89d55cd949811a67feb8ef8e1f2a..e4823b5577eac7bcddfd32fa94a80a9c1e0a934e 100644 (file)
--- 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))" ""