diff options
-rw-r--r-- | libgo/Makefile.in | 1 | ||||
-rwxr-xr-x | libgo/configure | 8 | ||||
-rw-r--r-- | libgo/configure.ac | 3 | ||||
-rw-r--r-- | libgo/testsuite/Makefile.in | 1 |
4 files changed, 11 insertions, 2 deletions
diff --git a/libgo/Makefile.in b/libgo/Makefile.in index 5b33859becf..5060d289261 100644 --- a/libgo/Makefile.in +++ b/libgo/Makefile.in @@ -344,6 +344,7 @@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ +CC_FOR_BUILD = @CC_FOR_BUILD@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ diff --git a/libgo/configure b/libgo/configure index 607533d0e38..032867f26dd 100755 --- a/libgo/configure +++ b/libgo/configure @@ -668,6 +668,7 @@ glibgo_toolexecdir glibgo_prefixdir WERROR WARN_FLAGS +CC_FOR_BUILD enable_static enable_shared CPP @@ -10913,7 +10914,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10916 "configure" +#line 10917 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11019,7 +11020,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11022 "configure" +#line 11023 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -13148,6 +13149,9 @@ CC="$lt_save_CC" +CC_FOR_BUILD=${CC_FOR_BUILD:-gcc} + + WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual' diff --git a/libgo/configure.ac b/libgo/configure.ac index 8a5ffb723a4..a11dc4db444 100644 --- a/libgo/configure.ac +++ b/libgo/configure.ac @@ -42,6 +42,9 @@ AM_PROG_LIBTOOL AC_SUBST(enable_shared) AC_SUBST(enable_static) +CC_FOR_BUILD=${CC_FOR_BUILD:-gcc} +AC_SUBST(CC_FOR_BUILD) + WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual' AC_SUBST(WARN_FLAGS) diff --git a/libgo/testsuite/Makefile.in b/libgo/testsuite/Makefile.in index 2117960e26b..b990f490a5d 100644 --- a/libgo/testsuite/Makefile.in +++ b/libgo/testsuite/Makefile.in @@ -67,6 +67,7 @@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ +CC_FOR_BUILD = @CC_FOR_BUILD@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ |