summaryrefslogtreecommitdiff
path: root/libgo/configure
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-20 18:14:30 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-20 18:14:30 +0000
commit6785caa3109e437a73f525059d0fd7418c5b37f9 (patch)
tree5dfd4daece115bfcf145e5502f4acae0d8b6e4d6 /libgo/configure
parent80cfebdb2aacb450e551a3dad687c6814493723c (diff)
downloadgcc-6785caa3109e437a73f525059d0fd7418c5b37f9.tar.gz
libgo: Fix use of -D_GNU_SOURCE and friends when building libgo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182548 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/configure')
-rwxr-xr-xlibgo/configure7
1 files changed, 4 insertions, 3 deletions
diff --git a/libgo/configure b/libgo/configure
index 314399fc404..d9915f91afc 100755
--- a/libgo/configure
+++ b/libgo/configure
@@ -13804,22 +13804,23 @@ fi
+OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
case "$target" in
mips-sgi-irix6.5*)
# IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
# msghdr in <sys/socket.h>.
- OSCFLAGS='-D_XOPEN_SOURCE=500'
+ OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
;;
*-*-solaris2.[89])
# Solaris 8/9 need this so struct msghdr gets the msg_control
# etc. fields in <sys/socket.h> (_XPG4_2).
- OSCFLAGS='-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__'
+ OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
;;
*-*-solaris2.1[01])
# Solaris 10+ needs this so struct msghdr gets the msg_control
# etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=500 as
# above doesn't work with C99.
- OSCFLAGS='-D_XOPEN_SOURCE=600 -D__EXTENSIONS__'
+ OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
;;
esac