This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Add sysdeps/unix/sysv/linux/x86_64/x32/

On Wed, May 23, 2012 at 5:02 PM, Roland McGrath <> wrote:
>> This patch adds sysdeps/unix/sysv/linux/x86_64/x32/
>> to specify minimum kernel and directories for x32.
> It's fine to make it a, but since there is no use of
> autoconf macros here, you could instead make it just a configure.
> That's simpler if you don't expect that this file will one day grow
> some macro use. ?But either way is OK.
>> I used 2.6.39 as
>> minimum kernel since Fedora 15 kernel maps kernel 3.x to 2.6.4x.y.
> Fedora 15 didn't have x32, so what does that matter? ?The first
> official Linux kernel release with x32 was 3.4, so that's what it
> should say.

This is what I checked in.


	* sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.

diff --git a/sysdeps/unix/sysv/linux/x86_64/x32/configure
new file mode 100644
index 0000000..51fc1e6
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/x86_64/x32/configure
@@ -0,0 +1,18 @@
+# Local configure fragment for sysdeps/unix/sysv/linux/86_64/x32.
+case "$machine" in
+  test -n "$arch_minimum_kernel" || arch_minimum_kernel=3.4.0
+  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
+  ;;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]