Subject: | netdns.a not built when XS forced |
Date: | Fri, 20 Oct 2006 11:32:09 +0200 |
To: | bug-Net-DNS [...] rt.cpan.org |
From: | PÁLFALVI Tamás <void [...] sch.bme.hu> |
When I force using the XS implementation by using "perl Makefile.PL
--xs", the netdns library doesn't get built, causing undefined symbols
in DNS.so when I try to use Net::DNS. The patch below corrected this
problem for me.
"make test" doesn't detect the problem -- it switches to the pure-perl
implementation. I haven't attempted to fix that.
--- Makefile.PL.orig Fri Oct 20 11:10:52 2006
+++ Makefile.PL Fri Oct 20 11:11:38 2006
@@ -103,7 +103,6 @@
if (test_cc()) {
print "You have a working compiler.\n";
$use_xs = 1;
- $Makefile{'MYEXTLIB'} = 'netdns$(LIB_EXT)',
} else {
@@ -132,6 +131,7 @@
if ($use_xs) {
# turn the XS bits on.
print "Activating XS Magic...\n" if DEBUG;
+ $Makefile{'MYEXTLIB'} = 'netdns$(LIB_EXT)',
delete $Makefile{'XS'};
delete $Makefile{'C'};
}
--
PALFALVI Tamas