From dabee2cee89f3a90ace61260aec88e09144f473d Mon Sep 17 00:00:00 2001 From: "Dr. Christian Tacke" <58549698+ChristianTackeGSI@users.noreply.github.com> Date: Wed, 6 Jan 2021 19:01:07 +0100 Subject: [PATCH] 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. --- var/spack/repos/builtin/packages/libc/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/libc/package.py b/var/spack/repos/builtin/packages/libc/package.py index c0333131102..8ee0c11f39e 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([])