aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2017-05-08 16:14:35 +0000
committerMarc Vertes <mvertes@free.fr>2017-05-08 16:14:35 +0000
commit1094891e67359058eb1c86a14d14ce24e233723a (patch)
tree3f0a72fee2955a7f3ab69b525531b373d19a3280 /configure
parent70fca7f7990743e119d9bed2aed436b39cba7b30 (diff)
downloadtinycc-1094891e67359058eb1c86a14d14ce24e233723a.tar.gz
tinycc-1094891e67359058eb1c86a14d14ce24e233723a.tar.bz2
Improve musl and uclibc detection
Do not enable musl or uclibc native support if a GNU linker is already present. This avoids interference for example on a Debian platform with musl-dev installed. More work is required to select musl libc in that case, with additional configure flags.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index 2327929..3f8ace7 100755
--- a/configure
+++ b/configure
@@ -359,7 +359,14 @@ if test -z "$cross_prefix" ; then
fi
fi
- if test -f "/lib/ld-uClibc.so.0" ; then
+ # Enable uClibc or musl native support only if GNU ld is not already present
+ if test -f "/lib/ld-linux.so.2"; then
+ :
+ elif test -f "/lib64/ld-linux-x86-64.so.2"; then
+ :
+ elif test -f "/lib64/ld-linux-aarch64.so.1"; then
+ :
+ elif test -f "/lib/ld-uClibc.so.0" ; then
confvars="$confvars uClibc"
elif test -f "/lib/ld-musl-$cpu.so.1"; then
confvars="$confvars musl"