This is the mail archive of the
automake-prs@sources.redhat.com
mailing list for the automake project.
Re: automake/315: per program CFLAGS broken
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- To: tromey at redhat dot com
- Cc: automake-prs at sources dot redhat dot com,
- Date: 22 Apr 2002 17:31:01 -0000
- Subject: Re: automake/315: per program CFLAGS broken
- Reply-to: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
The following reply was made to PR automake/315; it has been noted by GNATS.
From: Alexandre Duret-Lutz <duret_g@lrde.epita.fr>
To: Gustavo Carneiro <gjc@inescporto.pt>
Cc: adl@sources.redhat.com, automake-gnats@sources.redhat.com,
richard@tartarus.org, tromey@redhat.com
Subject: Re: automake/315: per program CFLAGS broken
Date: Mon, 22 Apr 2002 19:29:29 +0200
>>> "Gustavo" == Gustavo Carneiro <gjc@inescporto.pt> writes:
[...]
Gustavo> I have tried your workaround, but it didn't work. I added:
Gustavo> qosm_serv_SRCS=$(qosm_SRCS)
Gustavo> qosm_te_SRCS=$(qosm_SRCS)
No no, the bug is that you can't use the same variable
($(qosm_SRCS)) in the sources for two programs with per-targets
CFLAGS. Adding one level of indirection doesn't help, the
variable is still shared.
What I was suggesting is to duplicate its content:
qosm_serv_SRCS = qos-manager.cc qos-manager-daemon.hh ... etc.
qosm_te_SRCS = qos-manager.cc qos-manager-daemon.hh ... etc.
Inderstand why I said "ugly"?
[...]
--
Alexandre Duret-Lutz