public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* passing -no-undefined to libtool with autoconf/automake
@ 2013-07-21 11:26 marco atzeri
  2013-07-21 18:47 ` LRN
  2013-07-21 18:56 ` Yaakov (Cygwin/X)
  0 siblings, 2 replies; 3+ messages in thread
From: marco atzeri @ 2013-07-21 11:26 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-21 17:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-21 11:26 passing -no-undefined to libtool with autoconf/automake marco atzeri
2013-07-21 18:47 ` LRN
2013-07-21 18:56 ` Yaakov (Cygwin/X)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).