diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-07 17:28:00 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-07 17:28:32 -0500 |
commit | bd5969fc876a10b18613302db7087ef3c40f18e1 (patch) | |
tree | 7c2b8619afe902abf99570df2873fbdf40a4d1a1 /lib/mlibc/dummy-libs | |
parent | a95b38b1b92b172e6cc4e8e56a88a30cc65907b0 (diff) |
lib: Add mlibc
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/mlibc/dummy-libs')
-rw-r--r-- | lib/mlibc/dummy-libs/libcrypt/src/dummy.cpp | 6 | ||||
-rw-r--r-- | lib/mlibc/dummy-libs/libdl/src/dummy.cpp | 6 | ||||
-rw-r--r-- | lib/mlibc/dummy-libs/libm/src/dummy.cpp | 6 | ||||
-rw-r--r-- | lib/mlibc/dummy-libs/libpthread/src/dummy.cpp | 6 | ||||
-rw-r--r-- | lib/mlibc/dummy-libs/libresolv/src/dummy.cpp | 6 | ||||
-rw-r--r-- | lib/mlibc/dummy-libs/librt/src/dummy.cpp | 6 | ||||
-rw-r--r-- | lib/mlibc/dummy-libs/libssp/src/dummy.cpp | 6 | ||||
-rw-r--r-- | lib/mlibc/dummy-libs/libssp_nonshared/src/dummy.cpp | 6 | ||||
-rw-r--r-- | lib/mlibc/dummy-libs/libutil/src/dummy.cpp | 6 |
9 files changed, 54 insertions, 0 deletions
diff --git a/lib/mlibc/dummy-libs/libcrypt/src/dummy.cpp b/lib/mlibc/dummy-libs/libcrypt/src/dummy.cpp new file mode 100644 index 0000000..6c3a4c2 --- /dev/null +++ b/lib/mlibc/dummy-libs/libcrypt/src/dummy.cpp @@ -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) { } + diff --git a/lib/mlibc/dummy-libs/libdl/src/dummy.cpp b/lib/mlibc/dummy-libs/libdl/src/dummy.cpp new file mode 100644 index 0000000..c9d4287 --- /dev/null +++ b/lib/mlibc/dummy-libs/libdl/src/dummy.cpp @@ -0,0 +1,6 @@ + +// We build an empty libdl because g++ always links with -ldl +// The actual functions reside inside libc + +extern "C" void __mlibc_libdl_dummy(void) { } + diff --git a/lib/mlibc/dummy-libs/libm/src/dummy.cpp b/lib/mlibc/dummy-libs/libm/src/dummy.cpp new file mode 100644 index 0000000..eed43ca --- /dev/null +++ b/lib/mlibc/dummy-libs/libm/src/dummy.cpp @@ -0,0 +1,6 @@ + +// We build an empty libm because g++ always links with -lm +// The actual math functions reside inside libc + +extern "C" void __mlibc_libm_dummy(void) { } + diff --git a/lib/mlibc/dummy-libs/libpthread/src/dummy.cpp b/lib/mlibc/dummy-libs/libpthread/src/dummy.cpp new file mode 100644 index 0000000..3f8c51a --- /dev/null +++ b/lib/mlibc/dummy-libs/libpthread/src/dummy.cpp @@ -0,0 +1,6 @@ + +// We build an empty libpthread because g++ always links with -lpthread +// The actual functions reside inside libc + +extern "C" void __mlibc_libpthread_dummy(void) { } + diff --git a/lib/mlibc/dummy-libs/libresolv/src/dummy.cpp b/lib/mlibc/dummy-libs/libresolv/src/dummy.cpp new file mode 100644 index 0000000..5feb1c3 --- /dev/null +++ b/lib/mlibc/dummy-libs/libresolv/src/dummy.cpp @@ -0,0 +1,6 @@ + +// We build an empty libresolv because some programs always links with -lresolv +// The actual functions reside inside libc + +extern "C" void __mlibc_libresolv_dummy(void) { } + diff --git a/lib/mlibc/dummy-libs/librt/src/dummy.cpp b/lib/mlibc/dummy-libs/librt/src/dummy.cpp new file mode 100644 index 0000000..35c3852 --- /dev/null +++ b/lib/mlibc/dummy-libs/librt/src/dummy.cpp @@ -0,0 +1,6 @@ + +// We build an empty librt because g++ always links with -lrt +// The actual functions reside inside libc + +extern "C" void __mlibc_librt_dummy(void) { } + diff --git a/lib/mlibc/dummy-libs/libssp/src/dummy.cpp b/lib/mlibc/dummy-libs/libssp/src/dummy.cpp new file mode 100644 index 0000000..43286c1 --- /dev/null +++ b/lib/mlibc/dummy-libs/libssp/src/dummy.cpp @@ -0,0 +1,6 @@ + +// We build an empty libsso because some packages expect -lssp +// The actual ssp functions are provided by libc. + +extern "C" void __mlibc_libssp_dummy(void) { } + diff --git a/lib/mlibc/dummy-libs/libssp_nonshared/src/dummy.cpp b/lib/mlibc/dummy-libs/libssp_nonshared/src/dummy.cpp new file mode 100644 index 0000000..dcd8e90 --- /dev/null +++ b/lib/mlibc/dummy-libs/libssp_nonshared/src/dummy.cpp @@ -0,0 +1,6 @@ + +// We build an empty libsso because some packages expect -lssp_nonshared +// The actual ssp functions are provided by libc. + +extern "C" void __mlibc_libssp_nonshared_dummy(void) { } + diff --git a/lib/mlibc/dummy-libs/libutil/src/dummy.cpp b/lib/mlibc/dummy-libs/libutil/src/dummy.cpp new file mode 100644 index 0000000..c295ee5 --- /dev/null +++ b/lib/mlibc/dummy-libs/libutil/src/dummy.cpp @@ -0,0 +1,6 @@ + +// We build an empty libutil because g++ always links with -lutil +// The actual functions reside inside libc + +extern "C" void __mlibc_libutil_dummy(void) { } + |