libcrypt: Add a dummy libcrypt to satisfy shadow
Signed-off-by: Dennisbonke <admin@dennisbonke.com>
This commit is contained in:
parent
4ae723492f
commit
6253fcdd1b
6
libcrypt/src/dummy.cpp
Normal file
6
libcrypt/src/dummy.cpp
Normal 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) { }
|
||||
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue