From 53ff8bb03042faf8fbff912e2faadb141aaab2fd Mon Sep 17 00:00:00 2001 From: Slaven Rezic 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 => 'ldns', header => 'ldns/ldns.h', - function => 'if(atof(ldns_version()) >= 1.6) return 0; else return 1;' + function => 'if(atof(ldns_version()) >= 1.6) return 0; else return 1;', + incpath => '/usr/local/opt/openssl/include', ); # See lib/ExtUtils/MakeMaker.pm for details of how to influence @@ -30,9 +31,9 @@ WriteMakefile( (ABSTRACT_FROM => 'lib/DNS/LDNS.pm', # retrieve abstract from module AUTHOR => 'Erik Pihl Ostlyngen ', LICENSE => 'perl') : ()), - LIBS => ['-lldns'], + LIBS => ['-L/usr/local/opt/openssl/lib -L/usr/local/lib -lldns'], DEFINE => '', - INC => '-I.', + INC => '-I/usr/local/opt/openssl/include -I.', # Un-comment this if you add C files to link with later: # OBJECT => '$(O_FILES)', # link all the C files too ); -- 2.8.2