Subject: | Adding -lresolv on Solaris, better netdns.o handling |
The attached patch contains two improvements:
- On Solaris 8 (sparc) Net::DNS requires libresolv.so, so I added -
lresolv to LIBS
- better way to include netdns.o - there is no need to go through the
archive (netdns.a); you then can also remove the additional target to
build netdns.a. There is no benefit with this indirection
Cheers, and keep up the good work,
Marek
Subject: | Net-DNS.diff |
diff -ruN Net-DNS-0.60/Makefile.PL Net-DNS-0.60p1/Makefile.PL
--- Net-DNS-0.60/Makefile.PL 2007-06-21 16:40:00.000000000 +0200
+++ Net-DNS-0.60p1/Makefile.PL 2007-07-05 09:14:27.571274000 +0200
@@ -128,7 +128,8 @@
if ($use_xs) {
# turn the XS bits on.
print "Activating XS Magic...\n" if DEBUG;
- $Makefile{'MYEXTLIB'} = 'netdns$(LIB_EXT)';
+ $Makefile{'LIBS'} = '-lresolv' if($^O =~ /solaris|sunos/i);
+ $Makefile{'OBJECT'} = '$(O_FILES)';
delete $Makefile{'XS'};
delete $Makefile{'C'};
}