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