configure: prefer lib64 on 64-bit platforms
use lib64 if - "/usr/lib/multi-arch-triplet" does not work and - we are on a 64-bit platform and - lib64 exists and does contain crti.o
This commit is contained in:
parent
a52a39179a
commit
0d14e7e698
1 changed files with 4 additions and 3 deletions
7
configure
vendored
7
configure
vendored
|
@ -325,8 +325,10 @@ if test -z "$cross_prefix" ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$triplet"; then
|
if test -z "$triplet"; then
|
||||||
if test ! -f "/usr/lib/crti.o" -a -f "/usr/lib64/crti.o" ; then
|
if test $cpu = "x86-64" -o $cpu = "aarch64" ; then
|
||||||
tcc_lddir="lib64"
|
if test -f "/usr/lib64/crti.o" ; then
|
||||||
|
tcc_lddir="lib64"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -401,7 +403,6 @@ prefix=$prefix
|
||||||
bindir=\$(DESTDIR)$bindir
|
bindir=\$(DESTDIR)$bindir
|
||||||
tccdir=\$(DESTDIR)$tccdir
|
tccdir=\$(DESTDIR)$tccdir
|
||||||
libdir=\$(DESTDIR)$libdir
|
libdir=\$(DESTDIR)$libdir
|
||||||
ln_libdir=$libdir
|
|
||||||
includedir=\$(DESTDIR)$includedir
|
includedir=\$(DESTDIR)$includedir
|
||||||
mandir=\$(DESTDIR)$mandir
|
mandir=\$(DESTDIR)$mandir
|
||||||
infodir=\$(DESTDIR)$infodir
|
infodir=\$(DESTDIR)$infodir
|
||||||
|
|
Loading…
Reference in a new issue