when a mysql directory is specified in the lib list, tell the linker to add that directory to the compiled library's LD_RUN_PATH

This commit is contained in:
John Bintz 2010-11-17 11:18:42 -05:00
parent a6bdcfb673
commit 2eb503a89d
1 changed files with 5 additions and 1 deletions

View File

@ -130,4 +130,8 @@ end
$CPPFLAGS += " -DRUBY19" if RUBY_VERSION =~ /1.9/ $CPPFLAGS += " -DRUBY19" if RUBY_VERSION =~ /1.9/
create_makefile("mysql") if hard_mysql_path = $libs[%r{-L(/[^ ]+)}, 1]
$LDFLAGS << " -Wl,-rpath,#{hard_mysql_path}"
end
create_makefile("mysql")