add LD_RUN_PATH when using hard coded mysql paths

This commit is contained in:
John Bintz 2010-12-07 10:24:30 -05:00
parent 52f62c8b44
commit b99e0a057a
1 changed files with 4 additions and 0 deletions

View File

@ -62,4 +62,8 @@ unless RUBY_PLATFORM =~ /mswin/ or RUBY_PLATFORM =~ /sparc/
end
# $CFLAGS << ' -O0 -ggdb3 -Wextra'
if hard_mysql_path = $libs[%r{-L(/[^ ]+)}, 1]
$LDFLAGS << " -Wl,-rpath,#{hard_mysql_path}"
end
create_makefile('mysql2/mysql2')