[Fedora-packaging] Removing of unwanted compiler flags from $RPM_OPT_FLAGS

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Tue Sep 12 06:15:12 UTC 2006

Jochen at herr-schmitt.de (Jochen Schmitt) writes:

> becouse I have to find out, that some packages like blender have
> trouble if you are specify $RPM_OPT_FLAGS I have tried to search
> a method to remove selected compiler options from $RPM_OPT_FLAGS.
> My suggestion to solve this problem you may find at
> http://www.fedoraproject.org/wiki/JochenSchmitt/RemoveCFlagsFromRpmOptFlags#preview


|        RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -e "s/\S*$i\S*//")

stuff can be written shorter as


or perhaps

| RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-protector"

I do not think that it is worth to create extra scriptlets for this case;
packages which do not build with $RPM_OPT_FLAGS are usually broken.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20060912/c81e02d8/attachment.sig>

More information about the Fedora-packaging mailing list