libcrypt: Add a dummy libcrypt to satisfy shadow

Signed-off-by: Dennisbonke <admin@dennisbonke.com>
This commit is contained in:
Dennisbonke 2020-11-20 01:25:25 +01:00 committed by Dennis Bonke
parent 4ae723492f
commit 6253fcdd1b
No known key found for this signature in database
GPG key ID: F456F05FBF825330
2 changed files with 8 additions and 0 deletions

6
libcrypt/src/dummy.cpp Normal file
View file

@ -0,0 +1,6 @@
// We build an empty libcrypt because shadow expects -lcrypt
// The actual crypt functions reside inside libc
extern "C" void __mlibc_libcrypt_dummy(void) { }

View file

@ -264,6 +264,7 @@ if not headers_only
shared_library('rt', 'librt/src/dummy.cpp', install: true)
shared_library('util', 'libutil/src/dummy.cpp', install: true)
shared_library('m', 'libm/src/dummy.cpp', install: true)
shared_library('crypt', 'libcrypt/src/dummy.cpp', install: true)
else
ldso_lib = static_library('ld', rtdl_sources,
name_prefix: '',
@ -291,6 +292,7 @@ if not headers_only
static_library('rt', 'librt/src/dummy.cpp', install: true)
static_library('util', 'libutil/src/dummy.cpp', install: true)
static_library('m', 'libm/src/dummy.cpp', install: true)
static_library('crypt', 'libcrypt/src/dummy.cpp', install: true)
endif
endif