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.
This commit is contained in:
Dr. Christian Tacke 2021-01-06 19:01:07 +01:00 committed by GitHub
parent 8956c8c7b7
commit dabee2cee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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([])