From: Jarkko Hietaniemi Date: Sun, 29 Aug 1999 16:38:58 +0000 (+0000) Subject: Conditionally socksify the LIBS of Socket. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d6a66728474fdd676e356515043a404d3990d3de;p=p5sagit%2Fp5-mst-13.2.git Conditionally socksify the LIBS of Socket. p4raw-id: //depot/cfgperl@4050 --- diff --git a/ext/Socket/Makefile.PL b/ext/Socket/Makefile.PL index 3819143..339c45a 100644 --- a/ext/Socket/Makefile.PL +++ b/ext/Socket/Makefile.PL @@ -1,7 +1,9 @@ use ExtUtils::MakeMaker; +use Config; WriteMakefile( - NAME => 'Socket', + NAME => 'Socket', VERSION_FROM => 'Socket.pm', - MAN3PODS => {}, # Pods will be built by installman. - XSPROTOARG => '-noprototypes', # XXX remove later? + ($Config{libs} =~ /(-lsocks\S*)/ ? (LIBS => [ "$1" ] ) : ()), + MAN3PODS => {}, # Pods will be built by installman. + XSPROTOARG => '-noprototypes', # XXX remove later? );