Re: Removing of unwanted compiler flags from $RPM_OPT_FLAGS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jochen@xxxxxxxxxxxxxxx (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

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

Attachment: pgpv6DRWWBMW2.pgp
Description: PGP signature

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux