This topic is now archived and is closed to further replies.

Shannon Barber

optimized rpmbuild's

Recommended Posts

A well written spec file should use RPM_OPT_FLAGS for CFLAGS etc unless there are compelling reasons for avoiding certain optimizations or features. Not all spec files do that, unfortunately.

RPM_OPT_FLAGS are set per build target (i386, i686 etc) using the RPM configuration files (the "optflags" directive). You can override it system-wide (/etc/rpmrc) and per-user (~/.rpmrc).

RPM_OPT_FLAGS isn't really meant to be passed when you run rpmbuild, but you could use the --rcfile option to specify an additional file with special build options, e.g. for building a certain package with more aggressive optimization settings.

[edited by - spock on October 14, 2003 4:47:16 AM]

Share this post

Link to post
Share on other sites