View Full Version : C FLAGS rpmbuild ?

21st April 2004, 02:10 AM
how can i use C FLAGS (for example -O3) with rpmbuild comman ?
thank you.

22nd April 2004, 12:27 AM
Edit your /usr/lib/rpm/`uname -p`-linux/macros and alter %optflags to suit your needs, eg:

%optflags i686 -O3 -g -march=i686

You should be able to also place this into ~/.rpmmacros for per $USER configuration. I've not tested this though.
I don't believe there's an option for this in rpmbuild.