GNU bug report logs - #9855
CFLAGS per source

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: automake; Severity: wishlist; Reported by: NightStrike <nightstrike@HIDDEN>; dated Mon, 24 Oct 2011 03:20:02 UTC; Maintainer for automake is bug-automake@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefano Lattarini <stefano.lattarini@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 24 Oct 2011 03:19:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 23 23:19:19 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RIB4J-0000rl-MZ
	for submit <at> debbugs.gnu.org; Sun, 23 Oct 2011 23:19:19 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <nightstrike@HIDDEN>) id 1RIB4H-0000rZ-Rt
	for submit <at> debbugs.gnu.org; Sun, 23 Oct 2011 23:19:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <nightstrike@HIDDEN>) id 1RIB2k-0001Ov-Qc
	for submit <at> debbugs.gnu.org; Sun, 23 Oct 2011 23:17:43 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:46064)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nightstrike@HIDDEN>) id 1RIB2k-0001Or-Oo
	for submit <at> debbugs.gnu.org; Sun, 23 Oct 2011 23:17:42 -0400
Received: from eggs.gnu.org ([140.186.70.92]:38358)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nightstrike@HIDDEN>) id 1RIB2j-0003Lf-Sg
	for bug-automake@HIDDEN; Sun, 23 Oct 2011 23:17:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <nightstrike@HIDDEN>) id 1RIB2i-0001OX-Qy
	for bug-automake@HIDDEN; Sun, 23 Oct 2011 23:17:41 -0400
Received: from mail-ww0-f49.google.com ([74.125.82.49]:46850)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nightstrike@HIDDEN>) id 1RIB2i-0001OQ-JC
	for bug-automake@HIDDEN; Sun, 23 Oct 2011 23:17:40 -0400
Received: by wwf27 with SMTP id 27so2397362wwf.30
	for <bug-automake@HIDDEN>; Sun, 23 Oct 2011 20:17:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	bh=+p0ocsEgXlJmh4bMDXWCRuoSvH7PjpbHj1OI2lL7HPs=;
	b=FnpHjps3yJGX8DvF7MG2SryiXyQv2Z3gIYR8p+WaP3Nd2JkQXybcJ2RBEJ02QTj/ut
	tKBydK4WbGDK+oP8PCLY3IaF1FsY7YKdqIwkrNUK9HGbbvgNJsYYW9qXsTfi0R8JQtIe
	sxacEBEc+at5XwXo8x77fVMERMPnzfMwvVHrA=
MIME-Version: 1.0
Received: by 10.216.82.136 with SMTP id o8mr6338950wee.31.1319426259744; Sun,
	23 Oct 2011 20:17:39 -0700 (PDT)
Received: by 10.216.46.66 with HTTP; Sun, 23 Oct 2011 20:17:39 -0700 (PDT)
In-Reply-To: <CAF1jjLuB1mrXN_n0oVau6+ROUrZjs9YCArQ9SWGxaccf2eGWQA@HIDDEN>
References: <CAF1jjLuB1mrXN_n0oVau6+ROUrZjs9YCArQ9SWGxaccf2eGWQA@HIDDEN>
Date: Sun, 23 Oct 2011 23:17:39 -0400
Message-ID: <CAF1jjLsf3cMtbt71QNWPRhN5n1qk9HD3HyOK=EJ9zS158W3=Uw@HIDDEN>
Subject: CFLAGS per source
From: NightStrike <nightstrike@HIDDEN>
To: bug-automake@HIDDEN
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)

When using automake, I know how to set *FLAGS globally (ie,
AM_*FLAGS), and per binary/lib (ie bin_PROGRAMS=3Dfoo ; foo_*FLAGS =3D
...) =A0However, those flag variables apply to every source file for a
given primary. =A0What if I have multiple sources that are compiled
differently?

bin_PROGRAMS =3D a
a_SOURCES =3D x.c y.c

I want x.c compiled with -Option1 and y.c compiled with -Option2.

Section 27.8 of the manual, "Per-Object Flags Emulation", describes a
way to accomplish this using libraries, but is that really the ideal
solution? =A0It seems like a very hacky solution compared to supporting
some syntax for, say, x_c_CFLAGS variables (or something that works
with sources used multiple times.. perhaps a_x_c_CFLAGS), as in my
example above. =A0That would be much cleaner, I would think, compared to
requiring the user to create and link against useless intermediate
libraries.

Can this be considered for automake 1.12?

Also, has anyone verified that there really is no difference between
adding additional .o's to the link and .a's containing those .o's?
For instance, how does this interact with LTO (link time
optimization)?




Acknowledgement sent to NightStrike <nightstrike@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#9855; Package automake. 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.