X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-Alien-ZMQ;a=blobdiff_plain;f=lib%2FAlien%2FZMQ.pm;h=099edccae644a0d240e87bcac0b27fdab6018c7e;hp=4c0e2f9cdbddebecf5648c421f0345e7a5bd5d0b;hb=da7265e28350fae42a9173aae5d50cd004b88383;hpb=2c02694aaa9e02740bfd1f127d7dc676f816d54f diff --git a/lib/Alien/ZMQ.pm b/lib/Alien/ZMQ.pm index 4c0e2f9..099edcc 100644 --- a/lib/Alien/ZMQ.pm +++ b/lib/Alien/ZMQ.pm @@ -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. =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, plus C<-lzmq>. =cut sub libs { - "-L'" . lib_dir . "' -lzmq"; + "-L" . shell_quote(lib_dir) . " -lzmq"; } 1;