spack/var/spack/repos/builtin/packages/libc/package.py
Dr. Christian Tacke dabee2cee8
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.
2021-01-06 10:01:07 -08:00

27 lines
777 B
Python

# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from llnl.util.filesystem import LibraryList
class Libc(Package):
"""Dummy package to provide interfaces available in libc."""
homepage = "https://en.wikipedia.org/wiki/C_standard_library"
has_code = False
phases = []
version('1.0') # Dummy
variant('iconv', default=False, description='Provides interfaces for Localization Functions')
variant('rpc', default=False, description='Provides interfaces for RPC')
provides('iconv', when='+iconv')
provides('rpc', when='+rpc')
@property
def libs(self):
return LibraryList([])