Jump to content
  • Advertisement

Archived

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

Shannon Barber

optimized rpmbuild's

This topic is 5393 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do you pass build options through rpmbuild? Things like -O3 -fpmath=sse -mmmx etc... $CFLAGS, $CCFLAGS, $CXXFLAGS, and $RPM_OPT_FLAGS seem to be completely ignored.

Share this post


Link to post
Share on other sites
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!