View Full Version : C FLAGS rpmbuild ?
nkjsat2
2004-04-20, 07:10 PM CDT
how can i use C FLAGS (for example -O3) with rpmbuild comman ?
thank you.
mhelios
2004-04-21, 05:27 PM CDT
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.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.