]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
make: more fuzzy gcc detection
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 21 Feb 2018 17:31:07 +0000 (18:31 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 22 Feb 2018 15:50:59 +0000 (16:50 +0100)
It was breaking on Gentoo:
https://gitter.im/CZ-NIC/knot-resolver?at=5a8dab7b6f8b4b9946a3caeb

NEWS
platform.mk

diff --git a/NEWS b/NEWS
index 9cdb5f126caa20508a0bb68c52de604d463f7dd0..011293aff880f7cae1be8ca497b0b1c82da02868 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ Bugfixes
 --------
 - when iterating, avoid unnecessary queries for NS in insecure parent.
   This problem worsened in 2.0.0. (#246)
+- fix the hints module also on some other systems, e.g. Gentoo.
 
 
 Knot Resolver 2.1.0 (2018-02-16)
index 170269ca93b374aa642fa5671bdda3f2e2869caa..2fac670ff4fe6c158dc3371ec984d15187d61f89 100644 (file)
@@ -55,7 +55,7 @@ else
                ifeq ($(UNAME),Linux)
                        LDFLAGS += -ldl
                endif
-               ifeq (GCC,$(shell $(CC) --version | grep -q '\<GCC\>' && echo GCC))
+               ifeq (GCC,$(shell $(CC) --version | grep -q -i '\<gcc\>' && echo GCC))
                        # Otherwise Fedora is making kresd symbols inaccessible for modules.
                        # Clang doesn't support this flag, so we hackily detect gcc.
                        BUILD_CFLAGS += -rdynamic