From unknown Mon Aug 18 19:30:14 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21445 <21445@debbugs.gnu.org> To: bug#21445 <21445@debbugs.gnu.org> Subject: Status: LIBS not passed for creating a wrapper for cygwin/mingw Reply-To: bug#21445 <21445@debbugs.gnu.org> Date: Tue, 19 Aug 2025 02:30:14 +0000 retitle 21445 LIBS not passed for creating a wrapper for cygwin/mingw reassign 21445 libtool submitter 21445 Damian Bogel severity 21445 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 09 11:41:16 2015 Received: (at submit) by debbugs.gnu.org; 9 Sep 2015 15:41:16 +0000 Received: from localhost ([127.0.0.1]:53997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZhUp-0006ae-KU for submit@debbugs.gnu.org; Wed, 09 Sep 2015 11:41:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34375) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZgTe-0004rW-Fk for submit@debbugs.gnu.org; Wed, 09 Sep 2015 10:35:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZgTd-0004lH-EU for submit@debbugs.gnu.org; Wed, 09 Sep 2015 10:35:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,HTML_MESSAGE, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZgTd-0004lD-Bd for submit@debbugs.gnu.org; Wed, 09 Sep 2015 10:35:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZgTZ-0002DI-FV for bug-libtool@gnu.org; Wed, 09 Sep 2015 10:35:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZgTT-0004ie-SU for bug-libtool@gnu.org; Wed, 09 Sep 2015 10:35:53 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:36970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZgTT-0004iG-9y for bug-libtool@gnu.org; Wed, 09 Sep 2015 10:35:47 -0400 Received: by wicfx3 with SMTP id fx3so24294757wic.0 for ; Wed, 09 Sep 2015 07:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=6wiNT0Ob71HfGZt0PFib/pzxf6tn+4YIHbAEul3jozU=; b=QlEM790kzYF4f/xI8/SjHFlqK4JTmhNmeq0+5pj8EiW/v16980hhtbrbxPA8P1So+s zzuqLUMG1zPGQXAh4dslUON0deaU/mN+FiQtNxREECLlEWHHEneOluSFo62QeLNzgaiv yKaePayDZehhHxibcXE2CZ9vcmKk7j/XGMuMkkbQr/C0AhGZLAMOHD2/iNHzYs7u3uTO LLlyyPdHuM28s3wpWWEr4ys8Tg8QICQzj748AYIfG2gtF/o1DIWQ0TEyok0mis8SnWic +vf8c0tWdlQnnKrYNoSxV+Bv8R08l2UR2UPCIJ7/rGste8bmy1hdi9b7paXmKOIhxZOP batw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=6wiNT0Ob71HfGZt0PFib/pzxf6tn+4YIHbAEul3jozU=; b=m5p9SycN7EgCQ31VaSUdizVwfCxHtRxoETsn8+ppVImnUihFJwHz4Aw12L0mYOS+63 Cb7Bwg/FvbOaOC20DCEklarIamTTak/RVj9xWEFFMcZHhWY2ReCDMe1E4jFdJ2LMqSdf +mqkz2itMEPOpM1imsndqLgkY07Oe7cKngdCdQrQITwLOKNyDijTnMpl2Wu1jVRHw8jD N6m6SL5gDSSmDVUPYKBf1zka3JZKReUih7M4+r73uPkkEjl+3wvVOpmDa28uMy2syyGK DHxhKqXOFH1us4as1/NoYGNvFuD4WAuU9MqLVPCuFYF2ddxzC7DM7qmo9wYkcPftewm5 J93Q== X-Gm-Message-State: ALoCoQnSbuSmHmI+NhNmVXJhURYiEk2LS+EVYL3MgbPEoN+4ZMX0+6eAt3FqcAcJkS97oKd+zE3w MIME-Version: 1.0 X-Received: by 10.180.84.225 with SMTP id c1mr19783661wiz.92.1441809345794; Wed, 09 Sep 2015 07:35:45 -0700 (PDT) Received: by 10.194.61.204 with HTTP; Wed, 9 Sep 2015 07:35:45 -0700 (PDT) Date: Wed, 9 Sep 2015 10:35:45 -0400 Message-ID: Subject: LIBS not passed for creating a wrapper for cygwin/mingw From: Damian Bogel To: bug-libtool@gnu.org Content-Type: multipart/alternative; boundary=f46d0418282ee409e5051f516580 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 09 Sep 2015 11:41:14 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --f46d0418282ee409e5051f516580 Content-Type: text/plain; charset=UTF-8 Hi, It seems that whenever a wrapper executable is built for cygwin/mingw, libraries passed to libtool are ignored. In my libtool there's a command: # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } and clearly there's something missing after cwrappersource. In my project, I'm currently just using sed to patch the libtool, but a variable like LTLIBS would be useful. -- Best, Damian --f46d0418282ee409e5051f516580 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

It seems that whenever a wrapper ex= ecutable is built for cygwin/mingw, libraries passed to libtool are ignored= .

In my libtool there's a command:
<= br>
# The wrapper execut= able is built using the $host compiler,
# because it contains $host paths and files. If cross-
# compiling, it, like th= e target executable, must be
# executed on the $host or under an emulation environment.
$opt_dry_run || {
<= div>=C2=A0 $LTCC $LTCFLAGS -o $cwrapper= $cwrappersource
$STRIP $cwrapper
}

and clearly there's something missing after cwrappersource. In my proj= ect, I'm currently just using sed to patch the libtool, but a variable = like LTLIBS would be useful.


--
Best,
Damian
--f46d0418282ee409e5051f516580-- From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 09 16:48:11 2015 Received: (at 21445) by debbugs.gnu.org; 9 Sep 2015 20:48:11 +0000 Received: from localhost ([127.0.0.1]:54240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZmHq-0000kD-Cj for submit@debbugs.gnu.org; Wed, 09 Sep 2015 16:48:10 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]:36609) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZmHn-0000k0-Iz for 21445@debbugs.gnu.org; Wed, 09 Sep 2015 16:48:08 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 1CEB940040; Wed, 9 Sep 2015 22:48:06 +0200 (CEST) Received: from [192.168.0.68] (217-210-101-82-no95.business.telia.com [217.210.101.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id BA8374002C; Wed, 9 Sep 2015 22:48:05 +0200 (CEST) Subject: Re: bug#21445: LIBS not passed for creating a wrapper for cygwin/mingw To: Damian Bogel , 21445@debbugs.gnu.org References: From: Peter Rosin Message-ID: <55F09B04.4040502@lysator.liu.se> Date: Wed, 9 Sep 2015 22:48:04 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 21445 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On 2015-09-09 16:35, Damian Bogel wrote: > Hi, > > It seems that whenever a wrapper executable is built for cygwin/mingw, libraries passed to libtool are ignored. > > In my libtool there's a command: > > # The wrapper executable is built using the $host compiler, > # because it contains $host paths and files. If cross- > # compiling, it, like the target executable, must be > # executed on the $host or under an emulation environment. > $opt_dry_run || { > $LTCC $LTCFLAGS -o $cwrapper $cwrappersource > $STRIP $cwrapper > } > > and clearly there's something missing after cwrappersource. In my project, I'm currently just using sed to patch the libtool, but a variable like LTLIBS would be useful. Hi! I don't understand why you would need any extra libraries to build the cwrapper? It is not supposed to need any user-provided libraries, it's a very simple C program that sets up the environment for the real program and the execs that, no fancy libs needed for that. What is it that you think should be added with $LTLIBS? I wonder what the underlying problem is that you are apparently trying to work around? Cheers, Peter