aboutsummaryrefslogtreecommitdiff
path: root/libgo/Makefile.am
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-03-30 22:34:55 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-03-30 22:34:55 +0000
commit8955c80a1cc754999cfa93d03c04307281e6136f (patch)
treead346d0e1a6a29f4ca3ea6a450e50c5896ed8047 /libgo/Makefile.am
parent25a182be4fb67d8d972a8f8789f1557cc1a945e0 (diff)
downloadgcc-8955c80a1cc754999cfa93d03c04307281e6136f.zip
gcc-8955c80a1cc754999cfa93d03c04307281e6136f.tar.gz
gcc-8955c80a1cc754999cfa93d03c04307281e6136f.tar.bz2
libgo: Support systems which do not have strerror_r.
From-SVN: r171757
Diffstat (limited to 'libgo/Makefile.am')
-rw-r--r--libgo/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/libgo/Makefile.am b/libgo/Makefile.am
index 0a13bc9..476d4aa 100644
--- a/libgo/Makefile.am
+++ b/libgo/Makefile.am
@@ -1264,7 +1264,11 @@ endif
if LIBGO_IS_RTEMS
syscall_errstr_file = syscalls/errstr_rtems.go
else
+if HAVE_STRERROR_R
syscall_errstr_file = syscalls/errstr.go
+else
+syscall_errstr_file = syscalls/errstr_nor.go
+endif
endif
# Declare libc_strerror_r which is the Go name for strerror_r.
@@ -1273,7 +1277,7 @@ if LIBGO_IS_RTEMS
syscall_errstr_decl_file = syscalls/errstr_decl_rtems.go
else
if LIBGO_IS_LINUX
-# In Linux the POSIX strerror_r is called __xpg_strerror_r.
+# On GNU/Linux the POSIX strerror_r is called __xpg_strerror_r.
syscall_errstr_decl_file = syscalls/errstr_decl_linux.go
else
# On other systems we hope strerror_r is just strerror_r.