add LD_RUN_PATH when using hard coded mysql paths
This commit is contained in:
parent
52f62c8b44
commit
b99e0a057a
|
@ -62,4 +62,8 @@ unless RUBY_PLATFORM =~ /mswin/ or RUBY_PLATFORM =~ /sparc/
|
||||||
end
|
end
|
||||||
# $CFLAGS << ' -O0 -ggdb3 -Wextra'
|
# $CFLAGS << ' -O0 -ggdb3 -Wextra'
|
||||||
|
|
||||||
|
if hard_mysql_path = $libs[%r{-L(/[^ ]+)}, 1]
|
||||||
|
$LDFLAGS << " -Wl,-rpath,#{hard_mysql_path}"
|
||||||
|
end
|
||||||
|
|
||||||
create_makefile('mysql2/mysql2')
|
create_makefile('mysql2/mysql2')
|
||||||
|
|
Loading…
Reference in New Issue