--- a/Makefile.PL
+++ b/Makefile.PL
@@ -39,7 +39,7 @@ repository		'http://github.com/szbalint/
 #print "The version is $version\n";
 
 my @includes = qw();
-my ($cflags,$lflags, $ldflags) = ('','','');
+my ($cflags,$lflags, $ldflags) = ('','-lcurl','');
 
 # You may need to specify where to find curl.h on your platform
 # These are guesses only, in case curl-config is not telling us.
