Permalink
Browse files

Need to space-separate, quote, and use -I for $INCFLAGS

  • Loading branch information...
1 parent 9f39e65 commit 838a2b2c297bc507450978ba08a40e4feb7391f5 @jfirebaugh jfirebaugh committed Jul 19, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/18/mkmf.rb
  2. +1 −1 lib/19/mkmf.rb
View
@@ -1722,7 +1722,7 @@ def init_mkmf(config = CONFIG)
# that built in extensions will also find them if they have been configured
# at build time for Rubinius.
Rubinius::BUILD_CONFIG[:include_dirs].each do |inc|
- $INCFLAGS << inc
+ $INCFLAGS << " -I#{inc.quote}"
end
Rubinius::BUILD_CONFIG[:lib_dirs].each do |lib|
$DEFLIBPATH << lib
View
@@ -2168,7 +2168,7 @@ def init_mkmf(config = CONFIG, rbconfig = RbConfig::CONFIG)
# that built in extensions will also find them if they have been configured
# at build time for Rubinius.
Rubinius::BUILD_CONFIG[:include_dirs].each do |inc|
- $INCFLAGS << inc
+ $INCFLAGS << " -I#{inc.quote}"
end
Rubinius::BUILD_CONFIG[:lib_dirs].each do |lib|
$DEFLIBPATH << lib

0 comments on commit 838a2b2

Please sign in to comment.