From d48658b504039053c3fa2502671509261f99a1fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 21 Sep 2017 09:32:39 +0200 Subject: [PATCH] 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. --- modules/hints/hints.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.47.2