From unknown Mon Aug 11 21:12:44 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#9855 <9855@debbugs.gnu.org> To: bug#9855 <9855@debbugs.gnu.org> Subject: Status: CFLAGS per source Reply-To: bug#9855 <9855@debbugs.gnu.org> Date: Tue, 12 Aug 2025 04:12:44 +0000 retitle 9855 CFLAGS per source reassign 9855 automake submitter 9855 NightStrike severity 9855 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 23 23:19:19 2011 Received: (at submit) by debbugs.gnu.org; 24 Oct 2011 03:19:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIB4J-0000rl-MZ for submit@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 ) id 1RIB4H-0000rZ-Rt for submit@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 ) id 1RIB2k-0001Ov-Qc for submit@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 ) id 1RIB2k-0001Or-Oo for submit@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 ) id 1RIB2j-0003Lf-Sg for bug-automake@gnu.org; Sun, 23 Oct 2011 23:17:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIB2i-0001OX-Qy for bug-automake@gnu.org; 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 ) id 1RIB2i-0001OQ-JC for bug-automake@gnu.org; Sun, 23 Oct 2011 23:17:40 -0400 Received: by wwf27 with SMTP id 27so2397362wwf.30 for ; 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: References: Date: Sun, 23 Oct 2011 23:17:39 -0400 Message-ID: Subject: CFLAGS per source From: NightStrike To: bug-automake@gnu.org 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@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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)? From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 24 13:54:31 2011 Received: (at control) by debbugs.gnu.org; 24 Oct 2011 17:54:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIOjH-0006QK-7V for submit@debbugs.gnu.org; Mon, 24 Oct 2011 13:54:31 -0400 Received: from mail-ww0-f46.google.com ([74.125.82.46]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIOjF-0006Q8-H8 for control@debbugs.gnu.org; Mon, 24 Oct 2011 13:54:30 -0400 Received: by wwp14 with SMTP id 14so9171787wwp.15 for ; Mon, 24 Oct 2011 10:52:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:x-kmail-markup:mime-version :content-type:content-transfer-encoding:message-id; bh=vlYwVWNmFVn3h4SswVgBmaPRF+3dFFVvzFNtVh83w44=; b=EW2skgwuSXRl010If02FaXziR54Y/IAJ9/JACq+dfWiUypaG1jd3RR2gkOSOEpvowk qfgy5kDv1WuqxvovwQrNG+GBNwx8Cw6rb0cYurH419E/l3yTUcp7r3pdO9Zanp57U95p X64ycOKF+SPYCUNJfMxoPHnwEoeIrfZOArQAs= Received: by 10.227.4.74 with SMTP id 10mr5433395wbq.49.1319478771260; Mon, 24 Oct 2011 10:52:51 -0700 (PDT) Received: from bigio.localnet (host113-100-dynamic.0-79-r.retail.telecomitalia.it. [79.0.100.113]) by mx.google.com with ESMTPS id eu16sm40298319wbb.7.2011.10.24.10.52.48 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 24 Oct 2011 10:52:48 -0700 (PDT) From: Stefano Lattarini To: control@debbugs.gnu.org Subject: foo Date: Mon, 24 Oct 2011 19:52:39 +0200 User-Agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; ) X-KMail-Markup: true MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_oXapOx+/qiZ+2Ax" Content-Transfer-Encoding: 7bit Message-Id: <201110241952.40024.stefano.lattarini@gmail.com> X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) --Boundary-01=_oXapOx+/qiZ+2Ax Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit submitter 9859 Ignacy Gawedzki severity 9855 wishlist thanks --Boundary-01=_oXapOx+/qiZ+2Ax Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit

submitter 9859 Ignacy Gawedzki <i@lri.fr>

severity 9855 wishlist

thanks

--Boundary-01=_oXapOx+/qiZ+2Ax--