[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Questions about %define
- From: Jeff Johnson <jbj redhat com>
- To: rpm-list redhat com
- Subject: Re: Questions about %define
- Date: Thu, 9 May 2002 09:34:05 -0400
On Thu, May 09, 2002 at 04:15:00AM +0200, Han wrote:
> Hello list,
>
> I tried the following statement in my specfile:
>
> %define optflags %optflags" -g3"
>
> And a lot of things that look like it. But it won't work. Since rpm
> treads it recursively. Ok I could do it like:
>
> make CFLAGS="%opflags -g3" CXXFLAGS="%opflags -g3"
>
> But that is not really what I want, for practical reasons.
What do you want?
Do you wish to add -g3 to existing optflags from a specfile? Try
%{expand: %%define optflags %{optflags} -g3}
>
> Now that were at it can anybody confirm that "#" are ignored in the
> define section. So a line with
>
> #%define optflags -g3
>
> Is still read.
>
Macros have no context, are active in shell '#' comments. Do
#%%define ...
to disable.
73 de Jeff
--
Jeff Johnson ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]