openbsd-ports/databases/ruby-mysql2/patches/patch-ext_mysql2_extconf_rb
2013-10-26 23:48:40 +00:00

19 lines
694 B
Plaintext

$OpenBSD: patch-ext_mysql2_extconf_rb,v 1.2 2013/10/26 23:48:40 jeremy Exp $
--- ext/mysql2/extconf.rb.orig Wed Dec 31 16:00:00 1969
+++ ext/mysql2/extconf.rb Tue Jul 16 08:47:55 2013
@@ -44,11 +44,11 @@ elsif mc = (with_config('mysql-config') || Dir[GLOB].f
ver = `#{mc} --version`.chomp.to_f
cflags = `#{mc} --cflags`.chomp
exit 1 if $? != 0
- libs = `#{mc} --libs_r`.chomp
+ #libs = `#{mc} --libs_r`.chomp
# MySQL 5.5 and above already have re-entrant code in libmysqlclient (no _r).
- if ver >= 5.5 || libs.empty?
+ #if ver >= 5.5 || libs.empty?
libs = `#{mc} --libs`.chomp
- end
+ #end
exit 1 if $? != 0
$CPPFLAGS += ' ' + cflags
$libs = libs + " " + $libs