Jochen(a)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/RemoveCFlagsFromRpmOptFla...
The
| RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -e "s/\S*$i\S*//")
stuff can be written shorter as
| RPM_OPT_FLAGS=${RPM_OPT_FLAGS/-D.../}
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.
Enrico