diff options
Diffstat (limited to 'sysdeps/x86_64/preconfigure')
-rw-r--r-- | sysdeps/x86_64/preconfigure | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sysdeps/x86_64/preconfigure b/sysdeps/x86_64/preconfigure new file mode 100644 index 0000000000..d8df7ba3c0 --- /dev/null +++ b/sysdeps/x86_64/preconfigure @@ -0,0 +1,17 @@ +case "$base_machine" in +x86_64) + stubs_biarch_h=sysdeps/x86_64/stubs-biarch.h + lib_names_awk=sysdeps/x86_64/lib-names.awk + if echo __LP64__ | ${CC-cc} $CFLAGS $CPPFLAGS -E - | grep __LP64__ > /dev/null; then + machine=x86_64/x32 + data_machine=x32 + libc_cv_slibdir="/libx32" + if test "$libdir" = '${exec_prefix}/lib'; then + libdir='${exec_prefix}/libx32'; + # Locale data can be shared. + libc_cv_localedir='${exec_prefix}/lib/locale' + fi + else + machine=x86_64/64 + fi +esac |