]> Dogcows Code - chaz/p5-Alien-ZMQ/commitdiff
add smarter shell-quoting in the cflags and libs functions
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 18 Jan 2013 06:10:29 +0000 (23:10 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 18 Jan 2013 06:30:43 +0000 (23:30 -0700)
lib/Alien/ZMQ.pm

index 4c0e2f9cdbddebecf5648c421f0345e7a5bd5d0b..099edccae644a0d240e87bcac0b27fdab6018c7e 100644 (file)
@@ -4,6 +4,8 @@ package Alien::ZMQ;
 use warnings;
 use strict;
 
+use String::ShellQuote qw/shell_quote/;
+
 =head1 DESCRIPTION
 
 Upon installation, the target system is probed for the presence of libzmq.  If
@@ -118,7 +120,7 @@ is a shortcut for constructing a C<-I> flag using C<inc_dir>.
 =cut
 
 sub cflags {
-    "-I'" . inc_dir . "'";
+    "-I" . shell_quote(inc_dir);
 }
 
 =method libs
@@ -129,7 +131,7 @@ a shortcut for constructing a C<-L> flag using C<lib_dir>, plus C<-lzmq>.
 =cut
 
 sub libs {
-    "-L'" . lib_dir . "' -lzmq";
+    "-L" . shell_quote(lib_dir) . " -lzmq";
 }
 
 1;
This page took 0.021922 seconds and 4 git commands to generate.