diff options
| author | grischka <grischka> | 2016-11-28 14:48:54 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2016-11-28 14:48:54 +0100 |
| commit | 0d14e7e698ceb0b9b4d022ddacab43f1c1c3252d (patch) | |
| tree | d191471e85105089dacdec2f790b45c2a4416d63 /configure | |
| parent | a52a39179a47ee125e88ae0938f06d08cf5723ce (diff) | |
| download | tinycc-0d14e7e698ceb0b9b4d022ddacab43f1c1c3252d.tar.gz tinycc-0d14e7e698ceb0b9b4d022ddacab43f1c1c3252d.tar.bz2 | |
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
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -325,8 +325,10 @@ if test -z "$cross_prefix" ; then fi if test -z "$triplet"; then - if test ! -f "/usr/lib/crti.o" -a -f "/usr/lib64/crti.o" ; then - tcc_lddir="lib64" + if test $cpu = "x86-64" -o $cpu = "aarch64" ; then + if test -f "/usr/lib64/crti.o" ; then + tcc_lddir="lib64" + fi fi fi @@ -401,7 +403,6 @@ prefix=$prefix bindir=\$(DESTDIR)$bindir tccdir=\$(DESTDIR)$tccdir libdir=\$(DESTDIR)$libdir -ln_libdir=$libdir includedir=\$(DESTDIR)$includedir mandir=\$(DESTDIR)$mandir infodir=\$(DESTDIR)$infodir |
