X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=u4C DWyr89B7iViN6JFUchUurKHM0qrwYWjGVs0en34bjZYnUaTAkxTH2AWhv4vmkIoa ZxVOQwq0gA631o6SNXJv9J3/MvoZH+vAC7wS3UsnBW5RM+UFwXJF6JA2BeHHn7FM uUTtbJNJ6/frhlXxX1HV7RivpY/nuCGNFA9eVM4E= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=NwP6eyUVC Q0ylDvADx6hW6zSBDM=; b=giThwQkx6Xi5yPXm4icyarmeRvw+qOblMHl1pCBLb ZgkkcADqPtvZYayZXssktoQGRMZQit0meTdpJDF9VhF8S6Ngw6nVaqW6RsC2GBlR fOiuOps7z83z5h0RXbeBtEGmppFVAEmaxnrKSVjh5pfDoO8zRaznY5uhlBkvTB8G HE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=no version=3.3.1 X-Received: by 10.15.54.67 with SMTP id s43mr22667975eew.133.1374396215821; Sun, 21 Jul 2013 01:43:35 -0700 (PDT) Message-ID: <51EB9F35.4050408@gmail.com> Date: Sun, 21 Jul 2013 10:43:33 +0200 From: marco atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: passing -no-undefined to libtool with autoconf/automake Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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