Hi All,
As latest gcc's are not ignoring anymore "-no-undefined"
and the configure halt with error if LDFLAGS="-no-undefined"
is defined in advance
--------------------------------------------
*** Startup tests
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/pub/devel/openmpi/openmpi-1.7.2-1/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
---------------------------------------------
I am currently building packages adding almost at the
end of configure.ac
----------------------------------------------
AC_MSG_CHECKING([if libtool needs -no-undefined flag to build shared
libraries])
case "`uname`" in
CYGWIN*|MINGW*|AIX*)
## Add in the -no-undefined flag to LDFLAGS for libtool.
AC_MSG_RESULT([yes])
LDFLAGS="$LDFLAGS -no-undefined"
;;
*)
## Don't add in anything.
AC_MSG_RESULT([no])
;;
esac
----------------------------------------------
just before AC_CONFIG_FILES.
There is any better/practical way ?
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple