Commit 08d17dfe authored by Vladimír Čunát's avatar Vladimír Čunát

make: more fuzzy gcc detection

It was breaking on Gentoo:
https://gitter.im/CZ-NIC/knot-resolver?at=5a8dab7b6f8b4b9946a3caeb
parent d9b10f24
......@@ -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)
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment