]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
hints: fix linkage on darwin
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 21 Sep 2017 07:32:39 +0000 (09:32 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 21 Sep 2017 08:57:30 +0000 (10:57 +0200)
It's not very nice that this symbol used in hints.so is defined in
sbin/kresd, but it touches the daemon structures and thus doesn't
really belong into libkres.

modules/hints/hints.mk

index c7bb521be5536c35e76ab7e3ea3e43966dd405e4..15b537f16911de3c2c1683ee57d02f69772fe241 100644 (file)
@@ -1,5 +1,8 @@
 hints_CFLAGS := -fvisibility=hidden -fPIC
+# We use a symbol that's not in libkres but the daemon.
+# On darwin this isn't accepted by default.
+hints_LDFLAGS := -Wl,-undefined -Wl,dynamic_lookup
 hints_SOURCES := modules/hints/hints.c
 hints_DEPEND := $(libkres)
 hints_LIBS := $(contrib_TARGET) $(libkres_TARGET) $(libkres_LIBS)
-$(call make_c_module,hints)
\ No newline at end of file
+$(call make_c_module,hints)