2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-29 05:21:23 +01:00

empty --prefix

This commit is contained in:
Thomas Nagy 2012-09-29 17:32:46 +02:00
parent 9c7c864fcc
commit 0d6cd93f95

View File

@ -254,7 +254,10 @@ class ConfigurationContext(Context.Context):
:param env: a ConfigSet, usually ``conf.env``
"""
if not env.PREFIX:
env.PREFIX = os.path.abspath(os.path.expanduser(Options.options.prefix))
if Options.options.prefix or Utils.is_win32:
env.PREFIX = os.path.abspath(os.path.expanduser(Options.options.prefix))
else:
env.PREFIX = ''
if not env.BINDIR:
env.BINDIR = Utils.subst_vars('${PREFIX}/bin', env)
if not env.LIBDIR: