--- Makefile.PL~ 2008-02-08 16:25:54.000000000 +0100 +++ Makefile.PL~ 2008-09-06 23:05:22.882799725 +0200 @@ -11,6 +11,9 @@ sub DEBUG { 0; } +my $myLDFLAGS = $ENV{LDFLAGS}; +my $LDDLFLAGS = join ' ', $Config{lddlflags},$myLDFLAGS; + # An existing makefile can confuse the CC test. unlink('Makefile'); # clean up the online testing flag file. @@ -74,6 +76,7 @@ }, XS => {}, C => [], + 'LDDLFLAGS' => $LDDLFLAGS, clean => { FILES => 't/online.enabled compile.* DNS.o DNS.c DNS.bs' },