GNU bug report logs -
#9855
CFLAGS per source
Previous Next
To reply to this bug, email your comments to 9855 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-automake <at> gnu.org
:
bug#9855
; Package
automake
.
(Mon, 24 Oct 2011 03:20:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
NightStrike <nightstrike <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-automake <at> gnu.org
.
(Mon, 24 Oct 2011 03:20:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When using automake, I know how to set *FLAGS globally (ie,
AM_*FLAGS), and per binary/lib (ie bin_PROGRAMS=foo ; foo_*FLAGS =
...) However, those flag variables apply to every source file for a
given primary. What if I have multiple sources that are compiled
differently?
bin_PROGRAMS = a
a_SOURCES = 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? It 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. That 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)?
Severity set to 'wishlist' from 'normal'
Request was from
Stefano Lattarini <stefano.lattarini <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 24 Oct 2011 17:55:01 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 293 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.