summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r--ext/extmk.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index ca46e25beb0..25153fe2084 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -41,7 +41,7 @@ require 'find'
require 'ftools'
require 'shellwords'
-$topdir = $hdrdir = File.expand_path(".")
+$topdir = File.expand_path(".")
$top_srcdir = srcdir
Object.class_eval do remove_method :create_makefile end
@@ -374,6 +374,7 @@ def extmake(target)
$CPPFLAGS = CONFIG['CPPFLAGS']
$LDFLAGS = ""
$LIBPATH = [$libdir]
+ $INCFLAGS = "-I#{$topdir}"
dir_config("opt")