aboutsummaryrefslogtreecommitdiffstats
path: root/ext/tk/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/extconf.rb')
-rw-r--r--ext/tk/extconf.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/tk/extconf.rb b/ext/tk/extconf.rb
index 1f4f37a215..2f68d01e7f 100644
--- a/ext/tk/extconf.rb
+++ b/ext/tk/extconf.rb
@@ -2021,6 +2021,9 @@ if (TkLib_Config["tcltk-framework"] ||
$defs << %[-DRUBY_VERSION=\\"#{RUBY_VERSION}\\"]
$defs << %[-DRUBY_RELEASE_DATE=\\"#{RUBY_RELEASE_DATE}\\"]
+ # remove harmful definitions.
+ $defs.delete_if{|x|/^-Du?intptr_t=/ =~ x}
+
create_makefile("tcltklib")
puts "\nFind Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk."