]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't print errors when hostinfo not present
authorNick Porter <nick@portercomputing.co.uk>
Thu, 17 Jun 2021 10:28:35 +0000 (11:28 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 17 Jun 2021 11:04:57 +0000 (07:04 -0400)
Makefile

index 484c17df2e26923bcf71c61a2e6dfc1baa05b870..dfec7e81abd84a12e7dd96b4ecad118625925bd2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -114,7 +114,7 @@ ifeq "$(findstring libfreeradius-make,$(MAKECMDGOALS))" ""
 _:=$(shell $(MAKE) libfreeradius-make-dlopen.a libfreeradius-make-version.a)
 
 ifeq "${LIBRARY_EXT}" ""
-ifneq "$(findstring Darwin,$(shell hostinfo))" ""
+ifneq "$(findstring Darwin,$(shell hostinfo 2>/dev/null))" ""
 LIBRARY_EXT := dylib
 else
 LIBRARY_EXT := so