<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From 53ff8bb03042faf8fbff912e2faadb141aaab2fd Mon Sep 17 00:00:00 2001
From: Slaven Rezic &lt;slaven@rezic.de&gt;
Date: Tue, 27 Dec 2016 09:52:20 +0100
Subject: [PATCH] make DNS::LDNS compile on MacOSX with ldns from homebrew
 installed

---
 Makefile.PL | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index 13cecd9..e7263ee 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -6,7 +6,8 @@ use Devel::CheckLib;
 check_lib_or_exit( 
     lib      =&gt; 'ldns', 
     header   =&gt; 'ldns/ldns.h', 
-    function =&gt; 'if(atof(ldns_version()) &gt;= 1.6) return 0; else return 1;'
+    function =&gt; 'if(atof(ldns_version()) &gt;= 1.6) return 0; else return 1;',
+    incpath  =&gt; '/usr/local/opt/openssl/include',
 );
 
 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
@@ -30,9 +31,9 @@ WriteMakefile(
       (ABSTRACT_FROM  =&gt; 'lib/DNS/LDNS.pm', # retrieve abstract from module
        AUTHOR         =&gt; 'Erik Pihl Ostlyngen &lt;erik.ostlyngen@uninett.no&gt;',
        LICENSE        =&gt; 'perl') : ()),
-    LIBS              =&gt; ['-lldns'],
+    LIBS              =&gt; ['-L/usr/local/opt/openssl/lib -L/usr/local/lib -lldns'],
     DEFINE            =&gt; '',
-    INC               =&gt; '-I.',
+    INC               =&gt; '-I/usr/local/opt/openssl/include -I.',
 	# Un-comment this if you add C files to link with later:
     # OBJECT            =&gt; '$(O_FILES)', # link all the C files too
 );
-- 
2.8.2

</pre></body></html>