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:
parent
bb0667ceaf
commit
d00be588e3
@ -38,11 +38,11 @@ def libs(self):
|
|||||||
['libz'], root=self.prefix, recursive=True, shared=shared
|
['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:
|
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:
|
if '+optimize' in self.spec:
|
||||||
spack_env.append_flags('CFLAGS', '-O2')
|
env.append_flags('CFLAGS', '-O2')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
config_args = []
|
config_args = []
|
||||||
|
Loading…
Reference in New Issue
Block a user