We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25546f8 + 7088238 commit 7ca5f1fCopy full SHA for 7ca5f1f
ext/mysql2/extconf.rb
@@ -42,15 +42,15 @@ def asplode lib
42
elsif mc = (with_config('mysql-config') || Dir[GLOB].first) then
43
mc = Dir[GLOB].first if mc == true
44
ver = `#{mc} --version`.chomp.to_f
45
- cflags = `#{mc} --cflags`.chomp
+ includes = `#{mc} --include`.chomp
46
exit 1 if $? != 0
47
libs = `#{mc} --libs_r`.chomp
48
# MySQL 5.5 and above already have re-entrant code in libmysqlclient (no _r).
49
if ver >= 5.5 || libs.empty?
50
libs = `#{mc} --libs`.chomp
51
end
52
53
- $CPPFLAGS += ' ' + cflags
+ $INCFLAGS += ' ' + includes
54
$libs = libs + " " + $libs
55
else
56
inc, lib = dir_config('mysql', '/usr/local')
0 commit comments