about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-23 20:03:20 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-05-23 20:03:20 -0700
commitccd0a08f4e1ac5323cb229fbd401b70e9473b64e (patch)
tree5b89c5c038bdd8b14d9b978791f72ecbf5e76131
parentf8591f8049a401c898737ca843d87872b93e6ccc (diff)
downloadglibc-ccd0a08f4e1ac5323cb229fbd401b70e9473b64e.tar.gz
glibc-ccd0a08f4e1ac5323cb229fbd401b70e9473b64e.tar.xz
glibc-ccd0a08f4e1ac5323cb229fbd401b70e9473b64e.zip
Add sysdeps/unix/sysv/linux/x86_64/x32/configure
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/x32/configure18
2 files changed, 22 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 71045dbd47..418d89738c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
+
 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
 
 	mktime: avoid signed integer overflow
diff --git a/sysdeps/unix/sysv/linux/x86_64/x32/configure b/sysdeps/unix/sysv/linux/x86_64/x32/configure
new file mode 100644
index 0000000000..51fc1e6207
--- /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
+x86_64/x32)
+  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
+  ;;
+esac