diff --git a/configure b/configure index 23279298..3f8ace79 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"