zlib: use setup_build_environment for build env (#13786)

zlib was using the deprecated setup_environment call.  Now it's using
the current setup_build_environment.

(noticed this in some `spack -d` output)
This commit is contained in:
George Hartzell 2019-11-19 11:29:36 -08:00 committed by Axel Huebl
parent bb0667ceaf
commit d00be588e3

View File

@ -38,11 +38,11 @@ def libs(self):
['libz'], root=self.prefix, recursive=True, shared=shared
)
def setup_environment(self, spack_env, run_env):
def setup_build_environment(self, env):
if '+pic' in self.spec:
spack_env.append_flags('CFLAGS', self.compiler.pic_flag)
env.append_flags('CFLAGS', self.compiler.pic_flag)
if '+optimize' in self.spec:
spack_env.append_flags('CFLAGS', '-O2')
env.append_flags('CFLAGS', '-O2')
def install(self, spec, prefix):
config_args = []