1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

mkmf.rb: libpath_env

* lib/mkmf.rb (MakeMakefile#libpath_env): ignore empty LIBPATHENV.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-03-03 04:15:02 +00:00
parent bb2551b41c
commit d71177feab

View file

@ -351,7 +351,8 @@ module MakeMakefile
end
def libpath_env
if libpathenv = CONFIG["LIBPATHENV"]
# used only if native compiling
if libpathenv = config_string("LIBPATHENV")
pathenv = ENV[libpathenv]
libpath = RbConfig.expand($DEFLIBPATH.join(File::PATH_SEPARATOR))
{libpathenv => [libpath, pathenv].compact.join(File::PATH_SEPARATOR)}