diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-05-10 10:43:43 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-05-10 10:43:43 -0700 |
commit | 5032d82754052956e2d959cea9c95c96286aba46 (patch) | |
tree | 7e9023d8cbe8677698e0db1756de0a7611b30b56 | |
parent | e0b8967a6253f852ce5b5c2de12ce0b7dd0c2d15 (diff) | |
download | libyajl2-gem-5032d82754052956e2d959cea9c95c96286aba46.tar.gz |
fix env vars for devkit on windows
-rw-r--r-- | ext/libyajl2/extconf.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/libyajl2/extconf.rb b/ext/libyajl2/extconf.rb index 52202d1..9f65a60 100644 --- a/ext/libyajl2/extconf.rb +++ b/ext/libyajl2/extconf.rb @@ -37,8 +37,11 @@ module Libyajl2Build def self.setup_env if windows? - ENV['CC'] = 'gcc.exe' - ENV['CXX'] = 'g++.exe' + ENV['PATH'] ||= 'C:\Ruby\DevKit\bin;C:\Ruby\DevKit\mingw\bin;' + ENV['PATH'] + ENV['RI_DEVKIT'] ||= 'C:\Ruby\DevKit' + ENV['CC'] ||= 'gcc' + ENV['CPP'] ||= 'cpp' + ENV['CXX'] ||= 'g++' end end |