delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/07/21/13:19:26

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
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=UIoWqk7nqarJYg5Ks4Vs3uBwFKWmcU3ZK0iM0TT9t+y
VhRAHhIZtlODFtNgVSiQ9jyZ0k3ZBVMlEcAmMR3FBs74DAum8h4jU1TNRJmHuRBl
xl++OuskH7XkWIqu3J5s36YNmehFmuUPQVtby22e6tBc5PIQtQH5Kb3R5ZvDA1A4
=
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
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=LtGdLj+rZU2FU3OOA5IvwpNj26E=; b=HExG217a4YvH15yEz
MB+OXCHgDzAple4RIgU5q/+04szt2bXIrP8GVbyVO/i2HZfGkgA9gPZxMphyeLI+
XhnhE9mTRZFEyMxTUKk6i3/YYjgbTFvo+3+vDwtpR1qxN+2jN6QsdtlWuhrNRgqT
C27rq02iKgCGjIZbstuDjFVr1E=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=ham version=3.3.1
X-Received: by 10.66.25.102 with SMTP id b6mr22331485pag.129.1374427136800; Sun, 21 Jul 2013 10:18:56 -0700 (PDT)
Message-ID: <51EC17FD.1020301@users.sourceforge.net>
Date: Sun, 21 Jul 2013 12:18:53 -0500
From: "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net>
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: Re: passing -no-undefined to libtool with autoconf/automake
References: <51EB9F35 DOT 4050408 AT gmail DOT com>
In-Reply-To: <51EB9F35.4050408@gmail.com>

On 2013-07-21 03:43, marco atzeri wrote:
> As latest gcc's are not ignoring anymore "-no-undefined"
> and the configure halt with error if LDFLAGS="-no-undefined"
> is defined in advance

Right, as gcc no longer ignores arguments it doesn't accept.

> I am currently building packages adding almost at the
> end of configure.ac
[snip]
> just before  AC_CONFIG_FILES.
>
> There is any better/practical way ?

The "correct" way is to add -no-undefined to lib*_la_LDFLAGS variables 
for each library, which is portable and can be sent upstream (despite 
popular misconception, this flag is harmless on non-PE targets).  If 
that's too difficult (e.g. a package won't autoreconf cleanly), then if 
LDFLAGS is otherwise empty, then pass LDFLAGS=-no-undefined to cygmake 
(or MAKEOPTS).


Yaakov


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019