This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Add sysdeps/unix/sysv/linux/x86_64/x32/configure.in
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 23 May 2012 16:50:02 -0700
- Subject: PATCH: Add sysdeps/unix/sysv/linux/x86_64/x32/configure.in
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
This patch adds sysdeps/unix/sysv/linux/x86_64/x32/configure.in
to specify minimum kernel and directories for x32. I used 2.6.39 as
minimum kernel since Fedora 15 kernel maps kernel 3.x to 2.6.4x.y.
OK to install?
Thanks.
H.J.
---
* sysdeps/unix/sysv/linux/x86_64/x32/configure.in: New.
* sysdeps/unix/sysv/linux/x86_64/x32/configure: Generated.
diff --git a/sysdeps/unix/sysv/linux/x86_64/x32/configure.in b/sysdeps/unix/sysv/linux/x86_64/x32/configure.in
new file mode 100644
index 0000000..9e57e59
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/x86_64/x32/configure.in
@@ -0,0 +1,19 @@
+GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
+# Local configure fragment for sysdeps/unix/sysv/linux/86_64/x32.
+
+case "$machine" in
+x86_64/x32)
+ test -n "$arch_minimum_kernel" || arch_minimum_kernel=2.6.39
+ test -n "$libc_cv_slibdir" ||
+ case "$prefix" in
+ /usr | /usr/)
+ 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
+ ;;
+ esac
+ ;;
+esac