summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-08-29 16:38:58 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-29 16:38:58 +0000
commitd6a66728474fdd676e356515043a404d3990d3de (patch)
tree3733474b490f4bc9b0f3ad84d5d35358f67d54a5 /ext
parent6657d1ba4710621ab81a7d6261844badc687513c (diff)
downloadperl-d6a66728474fdd676e356515043a404d3990d3de.tar.gz
Conditionally socksify the LIBS of Socket.
p4raw-id: //depot/cfgperl@4050
Diffstat (limited to 'ext')
-rw-r--r--ext/Socket/Makefile.PL8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/Socket/Makefile.PL b/ext/Socket/Makefile.PL
index 3819143ac0..339c45a0a1 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?
);