GNU bug report logs - #25914
Please document compilation of Windows Resource files

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: libtool; Reported by: Reuben Thomas <rrt@HIDDEN>; dated Wed, 1 Mar 2017 13:00:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

Message received at 25914 <at> debbugs.gnu.org:


Received: (at 25914) by debbugs.gnu.org; 10 Oct 2017 17:22:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 10 13:22:27 2017
Received: from localhost ([127.0.0.1]:60860 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e1yEc-00036S-Sg
	for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 13:22:27 -0400
Received: from bhuna.collabora.co.uk ([46.235.227.227]:37582)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <simon.mcvittie@HIDDEN>) id 1e1yEa-00036J-Sp
 for 25914 <at> debbugs.gnu.org; Tue, 10 Oct 2017 13:22:25 -0400
Received: from localhost (unknown [IPv6:2a00:5f00:102:0:7ee1:5dca:1b13:7802])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256
 bits)) (No client certificate requested) (Authenticated sender: smcv)
 by bhuna.collabora.co.uk (Postfix) with ESMTPSA id E7A2E2603A3;
 Tue, 10 Oct 2017 18:22:23 +0100 (BST)
Date: Tue, 10 Oct 2017 18:22:22 +0100
From: Simon McVittie <smcv@HIDDEN>
To: Bob Friesenhahn <bfriesen@HIDDEN>
Subject: Re: bug#25914: Bug #25914: Please document compilation of Windows
 Resource files
Message-ID: <20171010172222.ijn7jhj7patxc7v6@HIDDEN>
References: <CAOnWdohJ-GjdG5-JKAxZHSue-FyKPNDwhLvazot1FkpVzAVBpg@HIDDEN>
 <20171009123035.q2ywayqupfftr5ej@HIDDEN>
 <alpine.GSO.2.20.1710091301270.25744@HIDDEN>
 <20171010153536.lfdsz24lljalzoda@HIDDEN>
 <alpine.GSO.2.20.1710101127070.14317@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <alpine.GSO.2.20.1710101127070.14317@HIDDEN>
User-Agent: NeoMutt/20170609 (1.8.3)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 25914
Cc: 25914 <at> debbugs.gnu.org, bug-libtool@HIDDEN, Reuben Thomas <rrt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

On Tue, 10 Oct 2017 at 11:32:25 -0500, Bob Friesenhahn wrote:
> On Tue, 10 Oct 2017, Simon McVittie wrote:
> > 
> > After invoking LT_LANG([Windows Resource]) in configure.ac, is the
> > Automake-generated build system meant to support compiling .rc files to
> > .lo and/or .o? I would expect that it should, but perhaps that expectation
> > is wrong?
> 
> What causes you to believe that there is support for a 'Windows Resource'
> language or specific support for Windows resource files?

`info libtool "Tags"` describes them as a language that libtool supports
for the LT_LANG macro, alongside (in the version I'm using) C, C++,
Java, Fortran and Go. LT_LANG([Windows Resource]) does check for a
resource compiler named i686-w64-mingw32-windres or similar, and puts
it in the output variable RC; it's the intended steps after that that
are less clear.

> The good news is that specific support is not required since it is easy to
> add additional tests to configure scripts and additional rules to Automake
> makefiles.

The bug that I'm replying to (#25914) is a libtool enhancement request
asking for the way this is meant to work to be documented (including
whether it is meant to involve adding additional rules, and if so, what
those rules should typically be).

I am not a Windows developer (although I co-maintain dbus, which is
portable to Windows) so unfortunately I don't have a correct answer for
that, only anecdotal evidence based on what did and didn't work in dbus.

    smcv




Information forwarded to bug-libtool@HIDDEN:
bug#25914; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Oct 2017 17:22:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 10 13:22:34 2017
Received: from localhost ([127.0.0.1]:60864 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e1yEk-00036p-99
	for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 13:22:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57913)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <simon.mcvittie@HIDDEN>) id 1e1yEj-00036c-B2
 for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 13:22:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <simon.mcvittie@HIDDEN>) id 1e1yEd-0004Ax-GQ
 for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 13:22:28 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45897)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <simon.mcvittie@HIDDEN>)
 id 1e1yEd-0004Ar-D0
 for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 13:22:27 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48878)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <simon.mcvittie@HIDDEN>) id 1e1yEc-0008BQ-8v
 for bug-libtool@HIDDEN; Tue, 10 Oct 2017 13:22:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <simon.mcvittie@HIDDEN>) id 1e1yEb-00049x-JT
 for bug-libtool@HIDDEN; Tue, 10 Oct 2017 13:22:26 -0400
Received: from bhuna.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e3e3]:41276)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <simon.mcvittie@HIDDEN>)
 id 1e1yEb-00049P-Cp
 for bug-libtool@HIDDEN; Tue, 10 Oct 2017 13:22:25 -0400
Received: from localhost (unknown [IPv6:2a00:5f00:102:0:7ee1:5dca:1b13:7802])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256
 bits)) (No client certificate requested) (Authenticated sender: smcv)
 by bhuna.collabora.co.uk (Postfix) with ESMTPSA id E7A2E2603A3;
 Tue, 10 Oct 2017 18:22:23 +0100 (BST)
Date: Tue, 10 Oct 2017 18:22:22 +0100
From: Simon McVittie <smcv@HIDDEN>
To: Bob Friesenhahn <bfriesen@HIDDEN>
Subject: Re: bug#25914: Bug #25914: Please document compilation of Windows
 Resource files
Message-ID: <20171010172222.ijn7jhj7patxc7v6@HIDDEN>
References: <CAOnWdohJ-GjdG5-JKAxZHSue-FyKPNDwhLvazot1FkpVzAVBpg@HIDDEN>
 <20171009123035.q2ywayqupfftr5ej@HIDDEN>
 <alpine.GSO.2.20.1710091301270.25744@HIDDEN>
 <20171010153536.lfdsz24lljalzoda@HIDDEN>
 <alpine.GSO.2.20.1710101127070.14317@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <alpine.GSO.2.20.1710101127070.14317@HIDDEN>
User-Agent: NeoMutt/20170609 (1.8.3)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.4 (----)
X-Debbugs-Envelope-To: submit
Cc: 25914 <at> debbugs.gnu.org, bug-libtool@HIDDEN, Reuben Thomas <rrt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.4 (----)

On Tue, 10 Oct 2017 at 11:32:25 -0500, Bob Friesenhahn wrote:
> On Tue, 10 Oct 2017, Simon McVittie wrote:
> > 
> > After invoking LT_LANG([Windows Resource]) in configure.ac, is the
> > Automake-generated build system meant to support compiling .rc files to
> > .lo and/or .o? I would expect that it should, but perhaps that expectation
> > is wrong?
> 
> What causes you to believe that there is support for a 'Windows Resource'
> language or specific support for Windows resource files?

`info libtool "Tags"` describes them as a language that libtool supports
for the LT_LANG macro, alongside (in the version I'm using) C, C++,
Java, Fortran and Go. LT_LANG([Windows Resource]) does check for a
resource compiler named i686-w64-mingw32-windres or similar, and puts
it in the output variable RC; it's the intended steps after that that
are less clear.

> The good news is that specific support is not required since it is easy to
> add additional tests to configure scripts and additional rules to Automake
> makefiles.

The bug that I'm replying to (#25914) is a libtool enhancement request
asking for the way this is meant to work to be documented (including
whether it is meant to involve adding additional rules, and if so, what
those rules should typically be).

I am not a Windows developer (although I co-maintain dbus, which is
portable to Windows) so unfortunately I don't have a correct answer for
that, only anecdotal evidence based on what did and didn't work in dbus.

    smcv




Information forwarded to bug-libtool@HIDDEN:
bug#25914; Package libtool. Full text available.

Message received at 25914 <at> debbugs.gnu.org:


Received: (at 25914) by debbugs.gnu.org; 10 Oct 2017 16:34:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 10 12:34:32 2017
Received: from localhost ([127.0.0.1]:60835 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e1xUF-0001wj-Pd
	for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 12:34:32 -0400
Received: from bhuna.collabora.co.uk ([46.235.227.227]:37238)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <simon.mcvittie@HIDDEN>) id 1e1wZH-0000Nv-SS
 for 25914 <at> debbugs.gnu.org; Tue, 10 Oct 2017 11:35:40 -0400
Received: from localhost (unknown [IPv6:2a00:5f00:102:0:4d2:23fb:1b3:118f])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested) (Authenticated sender: smcv)
 by bhuna.collabora.co.uk (Postfix) with ESMTPSA id BF7A4265CD8;
 Tue, 10 Oct 2017 16:35:38 +0100 (BST)
Date: Tue, 10 Oct 2017 16:35:36 +0100
From: Simon McVittie <smcv@HIDDEN>
To: Bob Friesenhahn <bfriesen@HIDDEN>
Subject: Re: bug#25914: Bug #25914: Please document compilation of Windows
 Resource files
Message-ID: <20171010153536.lfdsz24lljalzoda@HIDDEN>
References: <CAOnWdohJ-GjdG5-JKAxZHSue-FyKPNDwhLvazot1FkpVzAVBpg@HIDDEN>
 <20171009123035.q2ywayqupfftr5ej@HIDDEN>
 <alpine.GSO.2.20.1710091301270.25744@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <alpine.GSO.2.20.1710091301270.25744@HIDDEN>
User-Agent: NeoMutt/20170609 (1.8.3)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 25914
X-Mailman-Approved-At: Tue, 10 Oct 2017 12:34:30 -0400
Cc: 25914 <at> debbugs.gnu.org, bug-libtool@HIDDEN, Reuben Thomas <rrt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

On Mon, 09 Oct 2017 at 13:03:23 -0500, Bob Friesenhahn wrote:
> > I would appreciate feedback from libtool developers on how much of this is
> > working as intended, and how much of it is a bug in either Automake or
> > libtool.
> 
> A quick guess is that GNU make is being used

Yes, it is (at least on my side, not sure about my dbus co-maintainer).

> and it applies built-in rules
> for this if the Makefile does not provide its own rule

My make (GNU Make 4.1-9.1 as distributed by Debian) doesn't seem to have
anything built-in for .rc files - at least, strings(1) shows me the rules
I'd expect to be built in (.c, .cc and so on) but doesn't mention .rc.

> A later Automake
> may be blocking out built-in rules for targets Automake does not support in
> order to improve performance.

After invoking LT_LANG([Windows Resource]) in configure.ac, is the
Automake-generated build system meant to support compiling .rc files to
.lo and/or .o? I would expect that it should, but perhaps that expectation
is wrong?

Thanks,
    smcv




Information forwarded to bug-libtool@HIDDEN:
bug#25914; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Oct 2017 16:34:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 10 12:34:32 2017
Received: from localhost ([127.0.0.1]:60837 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e1xUG-0001wm-69
	for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 12:34:32 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54420)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <simon.mcvittie@HIDDEN>) id 1e1wZd-0000Oc-6b
 for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 11:36:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <simon.mcvittie@HIDDEN>) id 1e1wZS-0007lA-Bp
 for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 11:35:56 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:47749)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <simon.mcvittie@HIDDEN>)
 id 1e1wZS-0007kz-7t
 for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 11:35:50 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45338)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <simon.mcvittie@HIDDEN>) id 1e1wZO-0006xv-2t
 for bug-libtool@HIDDEN; Tue, 10 Oct 2017 11:35:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <simon.mcvittie@HIDDEN>) id 1e1wZK-0007co-6v
 for bug-libtool@HIDDEN; Tue, 10 Oct 2017 11:35:46 -0400
Received: from bhuna.collabora.co.uk ([46.235.227.227]:49564)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <simon.mcvittie@HIDDEN>)
 id 1e1wZK-0007ZP-1T
 for bug-libtool@HIDDEN; Tue, 10 Oct 2017 11:35:42 -0400
Received: from localhost (unknown [IPv6:2a00:5f00:102:0:4d2:23fb:1b3:118f])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested) (Authenticated sender: smcv)
 by bhuna.collabora.co.uk (Postfix) with ESMTPSA id BF7A4265CD8;
 Tue, 10 Oct 2017 16:35:38 +0100 (BST)
Date: Tue, 10 Oct 2017 16:35:36 +0100
From: Simon McVittie <smcv@HIDDEN>
To: Bob Friesenhahn <bfriesen@HIDDEN>
Subject: Re: bug#25914: Bug #25914: Please document compilation of Windows
 Resource files
Message-ID: <20171010153536.lfdsz24lljalzoda@HIDDEN>
References: <CAOnWdohJ-GjdG5-JKAxZHSue-FyKPNDwhLvazot1FkpVzAVBpg@HIDDEN>
 <20171009123035.q2ywayqupfftr5ej@HIDDEN>
 <alpine.GSO.2.20.1710091301270.25744@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <alpine.GSO.2.20.1710091301270.25744@HIDDEN>
User-Agent: NeoMutt/20170609 (1.8.3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.4 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 10 Oct 2017 12:34:30 -0400
Cc: 25914 <at> debbugs.gnu.org, bug-libtool@HIDDEN, Reuben Thomas <rrt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.4 (----)

On Mon, 09 Oct 2017 at 13:03:23 -0500, Bob Friesenhahn wrote:
> > I would appreciate feedback from libtool developers on how much of this is
> > working as intended, and how much of it is a bug in either Automake or
> > libtool.
> 
> A quick guess is that GNU make is being used

Yes, it is (at least on my side, not sure about my dbus co-maintainer).

> and it applies built-in rules
> for this if the Makefile does not provide its own rule

My make (GNU Make 4.1-9.1 as distributed by Debian) doesn't seem to have
anything built-in for .rc files - at least, strings(1) shows me the rules
I'd expect to be built in (.c, .cc and so on) but doesn't mention .rc.

> A later Automake
> may be blocking out built-in rules for targets Automake does not support in
> order to improve performance.

After invoking LT_LANG([Windows Resource]) in configure.ac, is the
Automake-generated build system meant to support compiling .rc files to
.lo and/or .o? I would expect that it should, but perhaps that expectation
is wrong?

Thanks,
    smcv




Information forwarded to bug-libtool@HIDDEN:
bug#25914; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Oct 2017 16:33:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 10 12:33:02 2017
Received: from localhost ([127.0.0.1]:60829 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e1xSk-0001tx-4R
	for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 12:33:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44138)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bfriesen@HIDDEN>) id 1e1xSi-0001tk-Ug
 for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 12:32:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1e1xSc-0002e6-9K
 for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 12:32:51 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37585)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <bfriesen@HIDDEN>)
 id 1e1xSc-0002e2-6n
 for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 12:32:50 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35107)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1e1xSa-0004XV-2z
 for bug-libtool@HIDDEN; Tue, 10 Oct 2017 12:32:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1e1xSW-0002co-U8
 for bug-libtool@HIDDEN; Tue, 10 Oct 2017 12:32:48 -0400
Received: from smtp.simplesystems.org ([65.66.246.90]:38859)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <bfriesen@HIDDEN>)
 id 1e1xSW-0002cU-Jp
 for bug-libtool@HIDDEN; Tue, 10 Oct 2017 12:32:44 -0400
Received: from scrappy.simplesystems.org (scrappy.simplesystems.org
 [65.66.246.73])
 by smtp.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id v9AGWPbr016805;
 Tue, 10 Oct 2017 11:32:25 -0500 (CDT)
Date: Tue, 10 Oct 2017 11:32:25 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@HIDDEN>
X-X-Sender: bfriesen@HIDDEN
To: Simon McVittie <smcv@HIDDEN>
Subject: Re: bug#25914: Bug #25914: Please document compilation of Windows
 Resource files
In-Reply-To: <20171010153536.lfdsz24lljalzoda@HIDDEN>
Message-ID: <alpine.GSO.2.20.1710101127070.14317@HIDDEN>
References: <CAOnWdohJ-GjdG5-JKAxZHSue-FyKPNDwhLvazot1FkpVzAVBpg@HIDDEN>
 <20171009123035.q2ywayqupfftr5ej@HIDDEN>
 <alpine.GSO.2.20.1710091301270.25744@HIDDEN>
 <20171010153536.lfdsz24lljalzoda@HIDDEN>
User-Agent: Alpine 2.20 (GSO 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
 (smtp.simplesystems.org [65.66.246.90]); Tue, 10 Oct 2017 11:32:28 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux (Android) [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
Cc: 25914 <at> debbugs.gnu.org, bug-libtool@HIDDEN, Reuben Thomas <rrt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

On Tue, 10 Oct 2017, Simon McVittie wrote:
>
> After invoking LT_LANG([Windows Resource]) in configure.ac, is the
> Automake-generated build system meant to support compiling .rc files to
> .lo and/or .o? I would expect that it should, but perhaps that expectation
> is wrong?

I do not see any described support for Windows resource files in the 
Automake manual at 
https://www.gnu.org/software/automake/manual/automake.html or the 
Autoconf manual at 
https://www.gnu.org/software/autoconf/manual/autoconf.html.

What causes you to believe that there is support for a 'Windows 
Resource' language or specific support for Windows resource files?

The good news is that specific support is not required since it is 
easy to add additional tests to configure scripts and additional rules 
to Automake makefiles.

Bob
-- 
Bob Friesenhahn
bfriesen@HIDDEN, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




Information forwarded to bug-libtool@HIDDEN:
bug#25914; Package libtool. Full text available.

Message received at 25914 <at> debbugs.gnu.org:


Received: (at 25914) by debbugs.gnu.org; 10 Oct 2017 16:32:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 10 12:32:46 2017
Received: from localhost ([127.0.0.1]:60826 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e1xSX-0001tW-5a
	for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 12:32:46 -0400
Received: from smtp.simplesystems.org ([65.66.246.90]:64474)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bfriesen@HIDDEN>) id 1e1xSU-0001tI-IJ
 for 25914 <at> debbugs.gnu.org; Tue, 10 Oct 2017 12:32:43 -0400
Received: from scrappy.simplesystems.org (scrappy.simplesystems.org
 [65.66.246.73])
 by smtp.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id v9AGWPbr016805;
 Tue, 10 Oct 2017 11:32:25 -0500 (CDT)
Date: Tue, 10 Oct 2017 11:32:25 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@HIDDEN>
X-X-Sender: bfriesen@HIDDEN
To: Simon McVittie <smcv@HIDDEN>
Subject: Re: bug#25914: Bug #25914: Please document compilation of Windows
 Resource files
In-Reply-To: <20171010153536.lfdsz24lljalzoda@HIDDEN>
Message-ID: <alpine.GSO.2.20.1710101127070.14317@HIDDEN>
References: <CAOnWdohJ-GjdG5-JKAxZHSue-FyKPNDwhLvazot1FkpVzAVBpg@HIDDEN>
 <20171009123035.q2ywayqupfftr5ej@HIDDEN>
 <alpine.GSO.2.20.1710091301270.25744@HIDDEN>
 <20171010153536.lfdsz24lljalzoda@HIDDEN>
User-Agent: Alpine 2.20 (GSO 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
 (smtp.simplesystems.org [65.66.246.90]); Tue, 10 Oct 2017 11:32:28 -0500 (CDT)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 25914
Cc: 25914 <at> debbugs.gnu.org, bug-libtool@HIDDEN, Reuben Thomas <rrt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

On Tue, 10 Oct 2017, Simon McVittie wrote:
>
> After invoking LT_LANG([Windows Resource]) in configure.ac, is the
> Automake-generated build system meant to support compiling .rc files to
> .lo and/or .o? I would expect that it should, but perhaps that expectation
> is wrong?

I do not see any described support for Windows resource files in the 
Automake manual at 
https://www.gnu.org/software/automake/manual/automake.html or the 
Autoconf manual at 
https://www.gnu.org/software/autoconf/manual/autoconf.html.

What causes you to believe that there is support for a 'Windows 
Resource' language or specific support for Windows resource files?

The good news is that specific support is not required since it is 
easy to add additional tests to configure scripts and additional rules 
to Automake makefiles.

Bob
-- 
Bob Friesenhahn
bfriesen@HIDDEN, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




Information forwarded to bug-libtool@HIDDEN:
bug#25914; Package libtool. Full text available.

Message received at 25914 <at> debbugs.gnu.org:


Received: (at 25914) by debbugs.gnu.org; 9 Oct 2017 18:03:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 09 14:03:39 2017
Received: from localhost ([127.0.0.1]:58530 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e1cOx-0003R1-AP
	for submit <at> debbugs.gnu.org; Mon, 09 Oct 2017 14:03:39 -0400
Received: from smtp.simplesystems.org ([65.66.246.90]:54259)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bfriesen@HIDDEN>) id 1e1cOv-0003Ql-N8
 for 25914 <at> debbugs.gnu.org; Mon, 09 Oct 2017 14:03:38 -0400
Received: from scrappy.simplesystems.org (scrappy.simplesystems.org
 [65.66.246.73])
 by smtp.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id v99I3NA0002391;
 Mon, 9 Oct 2017 13:03:23 -0500 (CDT)
Date: Mon, 9 Oct 2017 13:03:23 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@HIDDEN>
X-X-Sender: bfriesen@HIDDEN
To: Simon McVittie <smcv@HIDDEN>
Subject: Re: bug#25914: Bug #25914: Please document compilation of Windows
 Resource files
In-Reply-To: <20171009123035.q2ywayqupfftr5ej@HIDDEN>
Message-ID: <alpine.GSO.2.20.1710091301270.25744@HIDDEN>
References: <CAOnWdohJ-GjdG5-JKAxZHSue-FyKPNDwhLvazot1FkpVzAVBpg@HIDDEN>
 <20171009123035.q2ywayqupfftr5ej@HIDDEN>
User-Agent: Alpine 2.20 (GSO 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
 (smtp.simplesystems.org [65.66.246.90]); Mon, 09 Oct 2017 13:03:24 -0500 (CDT)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 25914
Cc: 25914 <at> debbugs.gnu.org, bug-libtool@HIDDEN, Reuben Thomas <rrt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

On Mon, 9 Oct 2017, Simon McVittie wrote:
>
> I would appreciate feedback from libtool developers on how much of this is
> working as intended, and how much of it is a bug in either Automake or
> libtool.

A quick guess is that GNU make is being used and it applies built-in 
rules for this if the Makefile does not provide its own rule.  A later 
Automake may be blocking out built-in rules for targets Automake does 
not support in order to improve performance.

Bob
-- 
Bob Friesenhahn
bfriesen@HIDDEN, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




Information forwarded to bug-libtool@HIDDEN:
bug#25914; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Oct 2017 18:03:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 09 14:03:56 2017
Received: from localhost ([127.0.0.1]:58533 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e1cPE-0003Ra-I0
	for submit <at> debbugs.gnu.org; Mon, 09 Oct 2017 14:03:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41756)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bfriesen@HIDDEN>) id 1e1cPC-0003RJ-O5
 for submit <at> debbugs.gnu.org; Mon, 09 Oct 2017 14:03:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1e1cP6-0005PW-NE
 for submit <at> debbugs.gnu.org; Mon, 09 Oct 2017 14:03:49 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:50165)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <bfriesen@HIDDEN>)
 id 1e1cP6-0005PS-KL
 for submit <at> debbugs.gnu.org; Mon, 09 Oct 2017 14:03:48 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60953)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1e1cP5-0004Gt-BW
 for bug-libtool@HIDDEN; Mon, 09 Oct 2017 14:03:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1e1cOz-0005N3-KH
 for bug-libtool@HIDDEN; Mon, 09 Oct 2017 14:03:47 -0400
Received: from smtp.simplesystems.org ([65.66.246.90]:49498)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <bfriesen@HIDDEN>)
 id 1e1cOz-0005MW-Cv
 for bug-libtool@HIDDEN; Mon, 09 Oct 2017 14:03:41 -0400
Received: from scrappy.simplesystems.org (scrappy.simplesystems.org
 [65.66.246.73])
 by smtp.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id v99I3NA0002391;
 Mon, 9 Oct 2017 13:03:23 -0500 (CDT)
Date: Mon, 9 Oct 2017 13:03:23 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@HIDDEN>
X-X-Sender: bfriesen@HIDDEN
To: Simon McVittie <smcv@HIDDEN>
Subject: Re: bug#25914: Bug #25914: Please document compilation of Windows
 Resource files
In-Reply-To: <20171009123035.q2ywayqupfftr5ej@HIDDEN>
Message-ID: <alpine.GSO.2.20.1710091301270.25744@HIDDEN>
References: <CAOnWdohJ-GjdG5-JKAxZHSue-FyKPNDwhLvazot1FkpVzAVBpg@HIDDEN>
 <20171009123035.q2ywayqupfftr5ej@HIDDEN>
User-Agent: Alpine 2.20 (GSO 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
 (smtp.simplesystems.org [65.66.246.90]); Mon, 09 Oct 2017 13:03:24 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux (Android) [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
Cc: 25914 <at> debbugs.gnu.org, bug-libtool@HIDDEN, Reuben Thomas <rrt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

On Mon, 9 Oct 2017, Simon McVittie wrote:
>
> I would appreciate feedback from libtool developers on how much of this is
> working as intended, and how much of it is a bug in either Automake or
> libtool.

A quick guess is that GNU make is being used and it applies built-in 
rules for this if the Makefile does not provide its own rule.  A later 
Automake may be blocking out built-in rules for targets Automake does 
not support in order to improve performance.

Bob
-- 
Bob Friesenhahn
bfriesen@HIDDEN, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




Information forwarded to bug-libtool@HIDDEN:
bug#25914; Package libtool. Full text available.

Message received at 25914 <at> debbugs.gnu.org:


Received: (at 25914) by debbugs.gnu.org; 9 Oct 2017 15:23:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 09 11:23:03 2017
Received: from localhost ([127.0.0.1]:58442 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e1ZtW-0005sT-UM
	for submit <at> debbugs.gnu.org; Mon, 09 Oct 2017 11:23:03 -0400
Received: from bhuna.collabora.co.uk ([46.235.227.227]:56808)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <simon.mcvittie@HIDDEN>) id 1e1XCg-000170-Dg
 for 25914 <at> debbugs.gnu.org; Mon, 09 Oct 2017 08:30:38 -0400
Received: from localhost (unknown [IPv6:2a00:5f00:102:0:4d2:23fb:1b3:118f])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested) (Authenticated sender: smcv)
 by bhuna.collabora.co.uk (Postfix) with ESMTPSA id A1D312603B6;
 Mon,  9 Oct 2017 13:30:37 +0100 (BST)
Date: Mon, 9 Oct 2017 13:30:35 +0100
From: Simon McVittie <smcv@HIDDEN>
To: 25914 <at> debbugs.gnu.org
Subject: Re: Bug #25914: Please document compilation of Windows Resource files
Message-ID: <20171009123035.q2ywayqupfftr5ej@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: NeoMutt/20170609 (1.8.3)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 25914
X-Mailman-Approved-At: Mon, 09 Oct 2017 11:23:02 -0400
Cc: Reuben Thomas <rrt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Reuben Thomas wrote:
> As suggested by the last message in that thread, the following seems to
> work:
>
> .rc.lo:
> $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC)
> $(RCFLAGS) $< -o $@

This came up during maintenance of dbus,
<https://bugs.freedesktop.org/show_bug.cgi?id=103015>. We have a resource
(versioninfo.rc) that we want to link into a libtool library, and also a
resource (disable-uac.rc) that we want to link into an executable.

For the libtool library, what Reuben said works: libtool knows how to
"compile" resource files into Libtool objects, but Automake does not
provide a .rc.lo implicit rule automatically, so we have to provide
our own. It wasn't clear to me whether this should result in an Automake
feature request (to provide such a rule automatically), or whether that
should be a Libtool feature request, or whether this is all working as
intended and users of this facility are expected to provide their own
implicit rule as Reuben did. For the moment we've done the same thing
Reuben suggested:

--------
SUFFIXES = .rc

.rc.lo:
	$(LIBTOOL) $(AM_V_lt) --tag=RC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(RC) $< -o $@

libdbus_1_la_SOURCES += versioninfo.rc
--------

For the executable, I found that I had to request compilation of a plain
object (.o) not a Libtool object (.lo), otherwise Automake 1.15.1
wouldn't realise that having $basename.rc in executable_SOURCES meant it
should include the corresponding $basename.o in executable_OBJECTS. This
worked with Debian's libtool 2.4.6-2 and Automake 1:1.15.1-3:

--------
SUFFIXES = .rc

.rc.o:
	$(LIBTOOL) $(AM_V_lt) --tag=RC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(RC) $< -o $@

nodist_dbus_update_activation_environment_SOURCES += disable-uac.rc
--------

However, another developer found that with an older libtool (openSUSE's
libtool 2.4.2-18.3.1 and automake 1.13.4-8.9), and that same make rule,
libtool/Automake would output the .o file in .libs/$basename.o but then
try to link $basename.o (without .libs) into the executable, causing a
build failure. Unfortunately, I wasn't able to find a git commit between
2.4.2 and 2.4.6 that looked like it fixed this. So we ended up with this
rule instead, using plain windres instead of libtool when linking the
resulting object into an executable:

--------
SUFFIXES = .rc

.rc.o:
	$(RC) $< -o $@

nodist_dbus_update_activation_environment_SOURCES += disable-uac.rc
--------

I would appreciate feedback from libtool developers on how much of this is
working as intended, and how much of it is a bug in either Automake or
libtool.

Thanks,
    smcv




Information forwarded to bug-libtool@HIDDEN:
bug#25914; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Mar 2017 12:59:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 01 07:59:37 2017
Received: from localhost ([127.0.0.1]:32946 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cj3qy-0006la-GC
	for submit <at> debbugs.gnu.org; Wed, 01 Mar 2017 07:59:36 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45911)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rrt@HIDDEN>) id 1cj3qu-0006lL-Qh
 for submit <at> debbugs.gnu.org; Wed, 01 Mar 2017 07:59:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rrt@HIDDEN>) id 1cj3qo-00039e-I4
 for submit <at> debbugs.gnu.org; Wed, 01 Mar 2017 07:59:27 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45099)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rrt@HIDDEN>) id 1cj3qo-00039X-Er
 for submit <at> debbugs.gnu.org; Wed, 01 Mar 2017 07:59:26 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36862)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rrt@HIDDEN>) id 1cj3qn-0003OI-0d
 for bug-libtool@HIDDEN; Wed, 01 Mar 2017 07:59:26 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rrt@HIDDEN>) id 1cj3ql-00038z-WC
 for bug-libtool@HIDDEN; Wed, 01 Mar 2017 07:59:25 -0500
Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]:33093)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <rrt@HIDDEN>) id 1cj3ql-00038F-Nm
 for bug-libtool@HIDDEN; Wed, 01 Mar 2017 07:59:23 -0500
Received: by mail-qk0-x22a.google.com with SMTP id n127so68413126qkf.0
 for <bug-libtool@HIDDEN>; Wed, 01 Mar 2017 04:59:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google;
 h=mime-version:from:date:message-id:subject:to;
 bh=+VIjT0ycFnv8kEuv+1HMMYKl1uebMO8Y9UbN+Ic5edE=;
 b=acsW66AqtGfbAXr2K4QHGUWtym2UAT/SytXJoaolL0jb3OfLObxdOVdtFynK3zhWSs
 kAbmNgHUe7x01KqahBsHPLu0T3CIVH7ssE0ihzubWJDc9FVfYse9ecgdzN62iLdbCxB7
 hEHB5KbN4aAx/WxTc2V3CDTX+CFMP4VWThAFk=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=+VIjT0ycFnv8kEuv+1HMMYKl1uebMO8Y9UbN+Ic5edE=;
 b=gY1RqKwtAiJMsaVIq58HWOdeFhKx3d48u0Z3QoUxfcGLiHsUojTYwwU7K353hf01SB
 ttGU5HqBqcIKLm6jZRcNUM2B8wxOmPBBCkzWBP7BI8AV92RoaT7nI7TULU8mNTO+mq6U
 RJVvq6L7hzkCLnytheNlVlDxwjHv2tyitY5hvGIRz/pP2T+mSbWuhnZLkFLVbgreVNkK
 9IchpRFucgHG4Fcloo0M/2/F6V8V6cGAdOm9Ep6Gm7FtBozl2X5AJGBK4eYdrnb4+XRn
 jFIsFA9HXqSytw8lorDLbmRtuWv8X/V5bW5JN5R6MORc8RvcHSXgPTooCuXbyBokLU62
 a05A==
X-Gm-Message-State: AMke39nxwfO+9i8uffc6ti60rQrBgM9I75d66XvlzWB4TOakjLQRoO1tc/eYzIY5I5f+5WBgp5vzu4gedUvFSdVt
X-Received: by 10.237.39.222 with SMTP id m30mr2962232qtg.21.1488373161026;
 Wed, 01 Mar 2017 04:59:21 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.88.9 with HTTP; Wed, 1 Mar 2017 04:59:20 -0800 (PST)
From: Reuben Thomas <rrt@HIDDEN>
Date: Wed, 1 Mar 2017 12:59:20 +0000
Message-ID: <CAOnWdohJ-GjdG5-JKAxZHSue-FyKPNDwhLvazot1FkpVzAVBpg@HIDDEN>
Subject: Please document compilation of Windows Resource files
To: bug-libtool@HIDDEN
Content-Type: multipart/alternative; boundary=f403045f43428ea8450549aae154
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

--f403045f43428ea8450549aae154
Content-Type: text/plain; charset=UTF-8

Please could you add something like Ralf Wildenheus's helpful Makefile rule
from

http://gnu-automake.7480.n7.nabble.com/correct-windres-use-td4889.html

to the libtool manual? At present I don't think it's possible to work out
how to compile Windows resource files without a lot of detective work.

As suggested by the last message in that thread, the following seems to
work:

.rc.lo:
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC)
$(RCFLAGS) $< -o $@

-- 
http://rrt.sc3d.org

--f403045f43428ea8450549aae154
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-size:small">Ple=
ase could you add something like Ralf Wildenheus&#39;s helpful Makefile rul=
e from</div><div class=3D"gmail_default" style=3D"font-size:small"><br></di=
v><div class=3D"gmail_default"><a href=3D"http://gnu-automake.7480.n7.nabbl=
e.com/correct-windres-use-td4889.html">http://gnu-automake.7480.n7.nabble.c=
om/correct-windres-use-td4889.html</a><br></div><div class=3D"gmail_default=
"><br></div><div class=3D"gmail_default">to the libtool manual? At present =
I don&#39;t think it&#39;s possible to work out how to compile Windows reso=
urce files without a lot of detective work.</div><div class=3D"gmail_defaul=
t"><br></div><div class=3D"gmail_default">As suggested by the last message =
in that thread, the following seems to work:</div><div class=3D"gmail_defau=
lt"><br></div><div class=3D"gmail_default"><div class=3D"gmail_default">.rc=
.lo:</div><div class=3D"gmail_default"><span class=3D"gmail-Apple-tab-span"=
 style=3D"white-space:pre">	</span>$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLF=
LAGS) --tag=3DRC --mode=3Dcompile $(RC) $(RCFLAGS) $&lt; -o $@</div></div><=
div><br></div>-- <br><div class=3D"gmail_signature"><a href=3D"http://rrt.s=
c3d.org" target=3D"_blank">http://rrt.sc3d.org</a></div>
</div>

--f403045f43428ea8450549aae154--




Acknowledgement sent to Reuben Thomas <rrt@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#25914; Package libtool. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.