From: Vladimír Čunát Date: Thu, 21 Sep 2017 07:32:39 +0000 (+0200) Subject: hints: fix linkage on darwin X-Git-Tag: v1.4.0~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d48658b504039053c3fa2502671509261f99a1fa;p=thirdparty%2Fknot-resolver.git hints: fix linkage on darwin 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. --- diff --git a/modules/hints/hints.mk b/modules/hints/hints.mk index c7bb521be..15b537f16 100644 --- a/modules/hints/hints.mk +++ b/modules/hints/hints.mk @@ -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)