This patch fixes the compiler flags in libgo/mksysinfo.sh. In one place, some compiler flags were missing that are consistently used elswhere, resulting in an error message.
ChangeLog 2014-09-05 Dominik Vogt <v...@linux.vnet.ibm.com> * libgo/mksysinfo.sh (OUT): Add the same compile flags that configure uses to detect whether off64_t is present or not when generating the go structures for the C types. Otherwise the go type for off64_t may not be generated. Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany
>From c22cbdd9aeaf69da3b85e2814178200f5cd6bac7 Mon Sep 17 00:00:00 2001 From: Dominik Vogt <v...@linux.vnet.ibm.com> Date: Fri, 5 Sep 2014 07:30:37 +0100 Subject: [PATCH 4/9] LIBGO: Fix generation of off64_t. Use -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE as elsewhere to make sure off64_t is generated. --- libgo/mksysinfo.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index e188155..71044c1 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -195,7 +195,8 @@ enum { }; EOF -${CC} -fdump-go-spec=gen-sysinfo.go -std=gnu99 -S -o sysinfo.s sysinfo.c +${CC} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \ + -fdump-go-spec=gen-sysinfo.go -std=gnu99 -S -o sysinfo.s sysinfo.c echo 'package syscall' > ${OUT} echo 'import "unsafe"' >> ${OUT} -- 1.8.4.2