diff options
author | Karl Berry <karl@freefriends.org> | 2020-06-15 07:19:33 -0700 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-06-15 07:19:33 -0700 |
commit | 048f43edfa10eda2c1b24c34ed874c3f35a541e4 (patch) | |
tree | 8e219b69d1670e5d3e6d1022009f213287e21663 /build-aux/config.guess | |
parent | f6b28899ac73585c10107a09e8619207f20952b6 (diff) | |
download | gnulib-048f43edfa10eda2c1b24c34ed874c3f35a541e4.tar.gz |
autoupdate
Diffstat (limited to 'build-aux/config.guess')
-rwxr-xr-x | build-aux/config.guess | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/build-aux/config.guess b/build-aux/config.guess index 11fda528bc..92bfc33e29 100755 --- a/build-aux/config.guess +++ b/build-aux/config.guess @@ -1095,7 +1095,17 @@ EOF echo "$UNAME_MACHINE"-dec-linux-"$LIBC" exit ;; x86_64:Linux:*:*) - echo "$UNAME_MACHINE"-pc-linux-"$LIBC" + set_cc_for_build + LIBCABI=$LIBC + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then + if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_X32 >/dev/null + then + LIBCABI="$LIBC"x32 + fi + fi + echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI" exit ;; xtensa*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" |