Skip to content

Commit

Permalink
tweak glibc deps
Browse files Browse the repository at this point in the history
  • Loading branch information
trws committed Jan 15, 2024
1 parent 28f7702 commit 2a3b7dd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions var/spack/repos/builtin/packages/glibc/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def configure_args(self):
"--enable-kernel=3.7.0",
"--with-headers={}".format(self.spec["linux-headers"].prefix.include),
"--without-selinux",
] + ([] if '+stage1' not in self.spec else [
] + ([] if not self.spec.satisfies("os=spack") else [
'--host='+self.spec.target_triple,
'--build=' + self.spec.host_triple,
# 'libc_cv_slibdir='+self.spec.prefix.lib,
Expand All @@ -244,12 +244,11 @@ def build(self, spec, prefix):

@run_after("install")
def add_linux_headers(self):
if '+stage1' in self.spec:
cp = which("cp")
cp('-r', self.spec['linux-headers'].prefix.include, self.spec.prefix)
cp = which("cp")
cp('-r', self.spec['linux-headers'].prefix.include, self.spec.prefix)
@run_after("install")
def install_locales(self):
if '+stage1' in self.spec:
if self.spec.satisfies("os=spack"):
ldef = Executable(self.prefix.bin.localedef, )
mkdirp(self.spec.prefix.lib.locale)
ldef("-i","POSIX","-f","UTF-8","C.UTF-8", fail_on_error=False)
Expand Down

0 comments on commit 2a3b7dd

Please sign in to comment.