diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-05-19 15:50:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-19 15:50:50 -0500 |
commit | cbcdfb0f7fac1cb64fa7a0319301cc3d6238eed6 (patch) | |
tree | 62aa382e3d4414693d6aa955326eaa5356a6690a | |
parent | 747ffcc38c8b61af667ee59e2bec35f4d1746ce7 (diff) | |
parent | 88a0b7b6f74e7eb86f97193fba0e5b0fecbe133f (diff) | |
download | libyajl2-gem-cbcdfb0f7fac1cb64fa7a0319301cc3d6238eed6.tar.gz |
Merge pull request #13 from brianvans/brianvans/escape_prefix
Escape prefix when generating makefile
-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 |