about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/s390
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2011-12-22 18:22:50 +0000
committerJoseph Myers <joseph@codesourcery.com>2011-12-22 18:22:50 +0000
commit154bfc16225aaa3d3104e758eed2a17297131599 (patch)
tree7c944bbebea49f962ea036f95e1ae13b61c988c3 /sysdeps/unix/sysv/linux/s390
parent16c6f99208229d7222fd26499749e56137322a3c (diff)
downloadglibc-154bfc16225aaa3d3104e758eed2a17297131599.tar.gz
glibc-154bfc16225aaa3d3104e758eed2a17297131599.tar.xz
glibc-154bfc16225aaa3d3104e758eed2a17297131599.zip
Support building bits/syscall.h for any number of subarch variants.
Diffstat (limited to 'sysdeps/unix/sysv/linux/s390')
-rw-r--r--sysdeps/unix/sysv/linux/s390/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/Makefile b/sysdeps/unix/sysv/linux/s390/Makefile
index 72eae688db..fb20fb05ac 100644
--- a/sysdeps/unix/sysv/linux/s390/Makefile
+++ b/sysdeps/unix/sysv/linux/s390/Makefile
@@ -1,4 +1,9 @@
-64bit-predefine = __s390x__
+syscall-list-variants := 32bit 64bit
+syscall-list-32bit-options := -U__s390x__
+syscall-list-32bit-condition := __WORDSIZE == 32
+syscall-list-64bit-options := -D__s390x__
+syscall-list-64bit-condition := __WORDSIZE == 64
+
 ifeq ($(subdir),rt)
 librt-routines += rt-sysdep
 endif