summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDr. Christian Tacke <58549698+ChristianTackeGSI@users.noreply.github.com>2021-01-06 19:01:07 +0100
committerGitHub <noreply@github.com>2021-01-06 10:01:07 -0800
commitdabee2cee89f3a90ace61260aec88e09144f473d (patch)
tree29ae85fcd910bce9db29afa1ab18a38f3ed64fd4 /var
parent8956c8c7b71b09e5bc6432b157bb4ca9a5d6004f (diff)
downloadspack-dabee2cee89f3a90ace61260aec88e09144f473d.tar.gz
spack-dabee2cee89f3a90ace61260aec88e09144f473d.tar.bz2
spack-dabee2cee89f3a90ace61260aec88e09144f473d.tar.xz
spack-dabee2cee89f3a90ace61260aec88e09144f473d.zip
libc: Return empty libs (#20338)
The C-Library for the current compiler should already be used by the compiler. So there is no point in returning any libs for this package. Without this patch: if one uses this as an external package (as intended), then this will can inject system library paths into the build process at the wrong place.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libc/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/libc/package.py b/var/spack/repos/builtin/packages/libc/package.py
index c033313110..8ee0c11f39 100644
--- a/var/spack/repos/builtin/packages/libc/package.py
+++ b/var/spack/repos/builtin/packages/libc/package.py
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
-from spack import *
+from llnl.util.filesystem import LibraryList
class Libc(Package):
@@ -20,3 +20,7 @@ class Libc(Package):
provides('iconv', when='+iconv')
provides('rpc', when='+rpc')
+
+ @property
+ def libs(self):
+ return LibraryList([])