Commit 20bfd98e authored by Jondy Zhao's avatar Jondy Zhao

Add environment variable CYGCONF_ARGS when using cygport to build component.

parent d6ddf139
...@@ -100,6 +100,9 @@ class Recipe(object): ...@@ -100,6 +100,9 @@ class Recipe(object):
self.environ['CXXFLAGS'] = '-I%s/include %s' % (self.buildout_prefix, self.environ.get('CXXFLAGS', '')) self.environ['CXXFLAGS'] = '-I%s/include %s' % (self.buildout_prefix, self.environ.get('CXXFLAGS', ''))
self.environ['LDFLAGS'] = '-L%s/lib %s' % (self.buildout_prefix, self.environ.get('LDFLAGS', '')) self.environ['LDFLAGS'] = '-L%s/lib %s' % (self.buildout_prefix, self.environ.get('LDFLAGS', ''))
if self.options.get('configure-command', '').strip() == 'cygport':
self.environ.setdefault('CYGCONF_ARGS', '--prefix=%s' % options['prefix'])
# Extrapolate the environment variables using values from the current # Extrapolate the environment variables using values from the current
# environment. # environment.
for key in self.environ: for key in self.environ:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment