From 2f692e4645a28be8e471a9541b626fa0f3d49fc3 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Wed, 29 Jan 2003 10:08:06 +0000 Subject: Update to 2.4.4 and add a patch to make it build with ruby 1.8. --- databases/ruby-mysql/files/patch-extconf.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 databases/ruby-mysql/files/patch-extconf.rb (limited to 'databases/ruby-mysql/files/patch-extconf.rb') diff --git a/databases/ruby-mysql/files/patch-extconf.rb b/databases/ruby-mysql/files/patch-extconf.rb new file mode 100644 index 000000000000..529f22b65b2a --- /dev/null +++ b/databases/ruby-mysql/files/patch-extconf.rb @@ -0,0 +1,22 @@ +--- extconf.rb.orig Wed Jan 29 08:59:59 2003 ++++ extconf.rb Wed Jan 29 19:02:41 2003 +@@ -24,13 +24,18 @@ + else + exit 1 + end ++$objs = ["mysql.o"] + create_makefile("mysql") + + # make mysql constant + File::open("conftest.c", "w") do |f| + f.puts src + end +-cpp = Config::expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '') ++if defined? cpp_command ++ cpp = Config.expand(cpp_command(CONFIG['CPPOUTFILE'])) ++else ++ cpp = Config::expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '') ++end + unless system "#{cpp} > confout" then + exit 1 + end -- cgit v1.2.3