summaryrefslogtreecommitdiff
path: root/lib/mlibc/dummy-libs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/dummy-libs')
-rw-r--r--lib/mlibc/dummy-libs/libcrypt/src/dummy.cpp6
-rw-r--r--lib/mlibc/dummy-libs/libdl/src/dummy.cpp6
-rw-r--r--lib/mlibc/dummy-libs/libm/src/dummy.cpp6
-rw-r--r--lib/mlibc/dummy-libs/libpthread/src/dummy.cpp6
-rw-r--r--lib/mlibc/dummy-libs/libresolv/src/dummy.cpp6
-rw-r--r--lib/mlibc/dummy-libs/librt/src/dummy.cpp6
-rw-r--r--lib/mlibc/dummy-libs/libssp/src/dummy.cpp6
-rw-r--r--lib/mlibc/dummy-libs/libssp_nonshared/src/dummy.cpp6
-rw-r--r--lib/mlibc/dummy-libs/libutil/src/dummy.cpp6
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) { }
+