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

View File

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