1 Index: Net-Pcap-0.16/Makefile.PL
2 ===================================================================
3 --- Net-Pcap-0.16.orig/Makefile.PL 2010-02-02 16:50:32.000000000 +0300
4 +++ Net-Pcap-0.16/Makefile.PL 2010-02-02 18:14:50.000000000 +0300
7 my $quote = $is_Win32 ? '"' : "'";
8 xsystem("$^X Makefile.PL " . join(' ', map { "${quote}$_=$options{$_}${quote}" } keys %options));
9 - xsystem("$Config{make} test ${quote}OTHERLDFLAGS=${opt}${quote}");
10 +# xsystem("$Config{make} test ${quote}OTHERLDFLAGS=${opt}${quote}");
16 print "detecting available functions... ";
18 - my @paths = DynaLoader::dl_findfile(qw(-lpcap));
19 - my $libref = DynaLoader::dl_load_file($paths[0]);
22 - my $symref = DynaLoader::dl_find_symbol($libref, $func);
23 - push @funcs, $func if defined $symref
25 + my $objdump = $ENV{'OBJDUMP'};
26 + my $st_libdir = $ENV{'STAGING_LIBDIR'};
27 + @funcs=`$objdump -t $st_libdir/libpcap.so | grep F | grep ".text" | awk '{print \$6}' | grep "^pcap_"`;