Ainsi parlait Bryan Paxton :
>  Getting more in tune with mdk spec files, I'm looking for the easiest
> and yet clean way to remove a flag from all RPM_OPT_FLAGS (CFLAGS,
> CXXFLAGS, FFLAGS, etc...) within the spec file...
> Example, knocking out -fno-exceptions from the optflags, so that certain
> apps will compile (e.g, openjade).
> This also provides a fail safe, for those who have -fno-exceptions as
> part of their optflags.
>
> I'm sure the answer to this is quite easy, but I don't feel like
> searching through spec files for a good example : )
>From xtheater spec:
export CFLAGS=$(echo $RPM_OPT_FLAGS | sed -e 
s/-fno-exceptions/-fexceptions/)
-- 
Guillaume Rousse <[EMAIL PROTECTED]>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html

Reply via email to