summaryrefslogtreecommitdiffstats
path: root/package/mono/0002-Adjust-libc.so-path-depending-on-C-library-being-use.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-02-07 11:06:33 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-02-07 12:50:21 +0100
commitee60fbdd7ba39d50fcca32f5f0d4ce9a51ae5e83 (patch)
tree6db1628d5fed2d1f63cb0309d7cec6b147b34218 /package/mono/0002-Adjust-libc.so-path-depending-on-C-library-being-use.patch
parentd471c19d0cedd2eda93ed686e9cf0399e5419919 (diff)
downloadbuildroot-ee60fbdd7ba39d50fcca32f5f0d4ce9a51ae5e83.tar.gz
buildroot-ee60fbdd7ba39d50fcca32f5f0d4ce9a51ae5e83.zip
mono: use proper Git patches
In order to ease the modification of the Mono patches, turn the existing ones into proper Git patches. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/mono/0002-Adjust-libc.so-path-depending-on-C-library-being-use.patch')
-rw-r--r--package/mono/0002-Adjust-libc.so-path-depending-on-C-library-being-use.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/mono/0002-Adjust-libc.so-path-depending-on-C-library-being-use.patch b/package/mono/0002-Adjust-libc.so-path-depending-on-C-library-being-use.patch
new file mode 100644
index 0000000000..4c1d522429
--- /dev/null
+++ b/package/mono/0002-Adjust-libc.so-path-depending-on-C-library-being-use.patch
@@ -0,0 +1,34 @@
+From 6f8346438e0257259867b5dca6bb6db54eb96705 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Sat, 7 Feb 2015 09:50:24 +0100
+Subject: [PATCH] Adjust libc.so path depending on C library being used
+
+By default, on Linux systems, Mono assumes that the C library is
+libc.so.6. While this is true for glibc, it is not true for uClibc and
+Musl based systems. This patch adds support for such systems.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ configure.ac | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 5d9961a..f6a7909 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -2978,6 +2978,12 @@ case "$host" in
+ SQLITE="libsqlite.so"
+ SQLITE3="libsqlite3.so"
+ ;;
++ *-*-*uclibc*)
++ LIBC="libc.so.0"
++ ;;
++ *-*-*musl*)
++ LIBC="libc.so"
++ ;;
+ *-*-*linux*)
+ AC_PATH_X
+ dlsearch_path=`(libtool --config ; echo eval echo \\$sys_lib_dlsearch_path_spec) | sh`
+--
+2.1.0
+
OpenPOWER on IntegriCloud