summaryrefslogtreecommitdiff
path: root/libgo/Makefile.am
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-07 22:39:45 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-07 22:39:45 +0000
commit9d061fc885e8aedd9e1334d214d7d38937511502 (patch)
tree84056f5650192820258fd06c42d69b19481470dd /libgo/Makefile.am
parentd180d4574df2f3a7bf438202e6d17715de2b86c4 (diff)
downloadgcc-9d061fc885e8aedd9e1334d214d7d38937511502.tar.gz
Use _nuname on 32-bit Solaris 2/x86.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170761 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/Makefile.am')
-rw-r--r--libgo/Makefile.am13
1 files changed, 13 insertions, 0 deletions
diff --git a/libgo/Makefile.am b/libgo/Makefile.am
index 814d7ed6132..ca3de1d1633 100644
--- a/libgo/Makefile.am
+++ b/libgo/Makefile.am
@@ -1201,6 +1201,18 @@ else
syscall_socket_epoll_file =
endif
+# Support for uname.
+if LIBGO_IS_SOLARIS
+if LIBGO_IS_386
+# 32-bit Solaris 2/x86 needs _nuname, handled in syscall_solaris_386.go.
+syscall_uname_file =
+else # !LIBGO_IS_386 && LIBGO_IS_SOLARIS
+syscall_uname_file = syscalls/syscall_uname.go
+endif
+else # !LIBGO_IS_SOLARIS
+syscall_uname_file = syscalls/syscall_uname.go
+endif
+
syscall_arch.go: s-syscall_arch; @true
s-syscall_arch: Makefile
rm -f syscall_arch.go.tmp
@@ -1222,6 +1234,7 @@ go_syscall_files = \
$(syscall_socket_os_file) \
$(syscall_socket_epoll_file) \
$(syscall_syscall_file) \
+ $(syscall_uname_file) \
syscalls/syscall_unix.go \
syscalls/stringbyte.go \
syscalls/syscall_$(GOOS).go \