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
Unified · Split
| @@ -325,8 +325,10 @@ if test -z "$cross_prefix" ; then · 324 unmodified lines | |||
| 325 | fi | 325 | fi |
| 326 | 326 | ||
| 327 | if test -z "$triplet"; then | 327 | if test -z "$triplet"; then |
| 328 | if test ! -f "/usr/lib/crti.o" -a -f "/usr/lib64/crti.o" ; then | 328 | if test $cpu = "x86-64" -o $cpu = "aarch64" ; then |
| 329 | tcc_lddir="lib64" | 329 | if test -f "/usr/lib64/crti.o" ; then |
| 330 | tcc_lddir="lib64" | ||
| 331 | fi | ||
| 330 | fi | 332 | fi |
| 331 | fi | 333 | fi |
| 332 | 334 | ||
| @@ -401,7 +403,6 @@ prefix=$prefix · 68 unmodified lines | |||
| 401 | bindir=\$(DESTDIR)$bindir | 403 | bindir=\$(DESTDIR)$bindir |
| 402 | tccdir=\$(DESTDIR)$tccdir | 404 | tccdir=\$(DESTDIR)$tccdir |
| 403 | libdir=\$(DESTDIR)$libdir | 405 | libdir=\$(DESTDIR)$libdir |
| 404 | ln_libdir=$libdir | ||
| 405 | includedir=\$(DESTDIR)$includedir | 406 | includedir=\$(DESTDIR)$includedir |
| 406 | mandir=\$(DESTDIR)$mandir | 407 | mandir=\$(DESTDIR)$mandir |
| 407 | infodir=\$(DESTDIR)$infodir | 408 | infodir=\$(DESTDIR)$infodir |