diff options
author | brianvans <brianvans@gmail.com> | 2017-05-18 14:50:26 -0700 |
---|---|---|
committer | brianvans <brianvans@gmail.com> | 2017-05-18 18:17:02 -0700 |
commit | 88a0b7b6f74e7eb86f97193fba0e5b0fecbe133f (patch) | |
tree | 62aa382e3d4414693d6aa955326eaa5356a6690a | |
parent | 747ffcc38c8b61af667ee59e2bec35f4d1746ce7 (diff) | |
download | libyajl2-gem-88a0b7b6f74e7eb86f97193fba0e5b0fecbe133f.tar.gz |
Escape prefix when generating makefile
Signed-off-by: Brian Van Staalduine <brianvans@gmail.com>
-rw-r--r-- | ext/libyajl2/extconf.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/libyajl2/extconf.rb b/ext/libyajl2/extconf.rb index 0800f1f..c4e9b31 100644 --- a/ext/libyajl2/extconf.rb +++ b/ext/libyajl2/extconf.rb @@ -1,6 +1,7 @@ require 'rbconfig' require 'fileutils' +require 'shellwords' if ENV["USE_SYSTEM_LIBYAJL2"] File.open("Makefile", "w+") do |f| @@ -32,7 +33,7 @@ module Libyajl2Build end def self.prefix - PREFIX + PREFIX.shellescape end def self.deps |