--- a/m4/R.m4 +++ b/m4/R.m4 @@ -976,7 +976,7 @@ x(1) = x(1)*x(2) + x(3) end EOF -${FC} ${FFLAGS} -c conftestf.f 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD +${FC} ${FFLAGS} -fno-lto -c conftestf.f 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD dnl Yes we need to double quote this ... [cat > conftest.c < @@ -1012,7 +1012,7 @@ else exit(1); } EOF] -if ${CC} ${CPPFLAGS} ${CFLAGS} -c conftest.c 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then +if ${CC} ${CPPFLAGS} ${CFLAGS} -fno-lto -c conftest.c 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then ## ## This should really use MAIN_LD, and hence come after this is ## determined (and necessary additions to MAIN_LDFLAGS were made). @@ -1020,7 +1020,7 @@ ## Also, to be defensive there should be a similar test with SHLIB_LD ## and SHLIB_LDFLAGS (and note that on HP-UX with native cc we have to ## use ld for SHLIB_LD) ... - if ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${MAIN_LDFLAGS} -o conftest${ac_exeext} \ + if ${CC} ${CPPFLAGS} ${CFLAGS} -fno-lto ${LDFLAGS} ${MAIN_LDFLAGS} -o conftest${ac_exeext} \ conftest.${ac_objext} conftestf.${ac_objext} ${FLIBS} \ ${LIBM} 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; ## --- a/configure +++ b/configure @@ -27526,7 +27526,7 @@ x(1) = x(1)*x(2) + x(3) end EOF -${FC} ${FFLAGS} -c conftestf.f 1>&5 2>&5 +${FC} ${FFLAGS} -fno-lto -c conftestf.f 1>&5 2>&5 cat > conftest.c < #include @@ -27561,7 +27561,7 @@ else exit(1); } EOF -if ${CC} ${CPPFLAGS} ${CFLAGS} -c conftest.c 1>&5 2>&5; then +if ${CC} ${CPPFLAGS} ${CFLAGS} -fno-lto -c conftest.c 1>&5 2>&5; then ## ## This should really use MAIN_LD, and hence come after this is ## determined (and necessary additions to MAIN_LDFLAGS were made). @@ -27569,7 +27569,7 @@ ## Also, to be defensive there should be a similar test with SHLIB_LD ## and SHLIB_LDFLAGS (and note that on HP-UX with native cc we have to ## use ld for SHLIB_LD) ... - if ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${MAIN_LDFLAGS} -o conftest${ac_exeext} \ + if ${CC} ${CPPFLAGS} ${CFLAGS} -fno-lto ${LDFLAGS} ${MAIN_LDFLAGS} -o conftest${ac_exeext} \ conftest.${ac_objext} conftestf.${ac_objext} ${FLIBS} \ ${LIBM} 1>&5 2>&5; ##