2015-02-07 11:06:33 +01:00
|
|
|
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
|
2014-10-22 22:22:10 +02:00
|
|
|
|
|
|
|
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>
|
2015-02-07 11:06:33 +01:00
|
|
|
---
|
|
|
|
configure.ac | 6 ++++++
|
|
|
|
1 file changed, 6 insertions(+)
|
2014-10-22 22:22:10 +02:00
|
|
|
|
2015-02-07 11:06:33 +01:00
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
|
|
index 5d9961a..f6a7909 100644
|
2014-10-22 22:22:10 +02:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2015-02-07 11:06:33 +01:00
|
|
|
@@ -2978,6 +2978,12 @@ case "$host" in
|
2014-10-22 22:22:10 +02:00
|
|
|
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`
|
2015-02-07 11:06:33 +01:00
|
|
|
--
|
|
|
|
2.1.0
|
|
|
|
|