aboutsummaryrefslogtreecommitdiff
path: root/libgo/configure
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-03-05 06:04:14 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-03-05 06:04:14 +0000
commitdbe1e4a5a679295a1eeb1dc4b1d56acd0d3614d7 (patch)
tree3665ec298c43170000a340d8994a9a0adcec48ef /libgo/configure
parent2203cb90fb793e384645e390e3a4112c47a7cb1d (diff)
downloadgcc-dbe1e4a5a679295a1eeb1dc4b1d56acd0d3614d7.zip
gcc-dbe1e4a5a679295a1eeb1dc4b1d56acd0d3614d7.tar.gz
gcc-dbe1e4a5a679295a1eeb1dc4b1d56acd0d3614d7.tar.bz2
libgo: Fix Solaris ustat.h test.
From-SVN: r184913
Diffstat (limited to 'libgo/configure')
-rwxr-xr-xlibgo/configure5
1 files changed, 4 insertions, 1 deletions
diff --git a/libgo/configure b/libgo/configure
index 128629f..d1c17f1 100755
--- a/libgo/configure
+++ b/libgo/configure
@@ -14547,7 +14547,9 @@ $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
if test "${libgo_cv_c_ustat_h+set}" = set; then :
$as_echo_n "(cached) " >&6
else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ CFLAGS_hold=$CFLAGS
+CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
@@ -14563,6 +14565,7 @@ else
libgo_cv_c_ustat_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+CFLAGS=$CFLAGS_hold
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
$as_echo "$libgo_cv_c_ustat_h" >&6; }