From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29447 invoked by alias); 13 May 2014 16:54:19 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 29430 invoked by uid 89); 13 May 2014 16:54:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 13 May 2014 16:54:17 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WkFy0-0002nO-EQ for cygwin@cygwin.com; Tue, 13 May 2014 18:54:12 +0200 Received: from c-69-140-37-22.hsd1.md.comcast.net ([69.140.37.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 May 2014 18:54:12 +0200 Received: from schulman.andrew by c-69-140-37-22.hsd1.md.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 May 2014 18:54:12 +0200 To: cygwin@cygwin.com From: Andrew Schulman Subject: Re: pinfo configure problem - configure.ac (0/1) Date: Tue, 13 May 2014 17:29:00 -0000 Message-ID: References: <05u3n9l6l8pgdeuidskcplb1930mmjtu05@4ax.com> <20140513110518.GN2436@calimero.vinschen.de> <20140513115410.GP2436@calimero.vinschen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive: encrypt X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00278.txt.bz2 > > On May 13 07:49, Andrew Schulman wrote: > > > > On May 13 06:55, Andrew Schulman wrote: > > > > > I'm trying to build pinfo 0.6.10 in 64-bit. The configure script halts, > > > > > claiming "curses is not usable". The command that fails is: > > > > > > > > > > gcc -o conftest.exe -g -O2 -I/usr/include -L/usr/lib -lncursesw > > > > > conftest.c > > > > > > > > > > and this fails because the order of the arguments is wrong. The command > > > > > should be > > > > > > > > > > gcc -o conftest.exe -g -O2 -I/usr/include conftest.c -L/usr/lib > > > > > -lncursesw > > > > > > > > > > and that succeeds. So my question is really an autoconf question: How > > > > > can I tell autoconf to fix the order of the compiler arguments? > > > > > > > > Doesn't calling `autoreconf' fix this problem? If so, if you use > > > > cygport, the default build strategy contains the autoreconf step. > > > > If you defin your own build function, call cygautoreconf as first > > > > step after `cd ${B}'. > > > > > > No, unfortunately it doesn't. I ran 'autoreconf -i' first. > > > > autoreconf -f -i? > > Alas, no. > > Here's configure.ac, in case that's helpful. I seem to have worked around it by setting LIBS=-lncursesw. Apparently LIBS is appended to the gcc command line after the list of source files. Thanks for looking into it. -- 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