--- Lee Elliott <[EMAIL PROTECTED]> wrote: > On Tuesday 04 November 2003 18:05, Jonathan Richards > wrote: > > On Tuesday 04 Nov 2003 8:20 am, Innis Cunningham > wrote: > > > Hi George > > > > > > George Patterson > > >><snip> > > > >I read on a mail Flightgear archive somewhere > that using a configure > > > >switch of --build=athlon. How do I do that > using a source RPM? > > > > > > I guess the thing is to run it as a start option > and see if it makes > any > > > difference > > > > > > > No, George has it right, this is an option for the > configure script. > > > > [EMAIL PROTECTED] source]$ ./configure --help > > ... > > System types: > > --build=BUILD configure for building on > BUILD [guessed] > > > > It isn't a run-time option for fgfs. > > As to using it with a source RPM, I would guess > that you'd do > > > > $ rpm --rebuild whatever-package.src.rpm > > > > which would create the sources, typically in > /usr/source/RPM/SOURCES/, > > although RPM will always tell you what it wrote, > and then you can go > there > > and run ./configure --build=athlon && make; > > > > Regards > > Jonathan > > What is the effect of adding --build to ./configure? > > I already set the appropriate -march, -mfpmath and > -msse flags for > compilation - does the --build option just invoke > some of these flags or > does it do something else? > > LeeE
To add configure options while rebuilding an rpm, this works for me. rpm -ivh package.src.rpm This will install the source packages and the spec file in the default places for your distro, unless you've changed it. For Redhat that's /usr/src/redhat/SOURCE and /usr/src/redhat/SPEC then take a text editor to the file in the SPEC directory. For instance: gedit /usr/src/redhat/SPEC/package.spec (adjust accordingly) find the part of the spec file that does the ./configure part of the build process. If it's not a complicated spec, it should look pretty obvious. Then just include the configure options you want there and save the file. Then while in the SPEC folder use this command: rpmbuild -bb package.spec NOW that's I've typed all that, I've just realized that you SHOULD be able to just type, with the src.rpm file: rpmbuild --target athlon --rebuild package.src.rpm that should/might build it compiled for athlon. but my other instructions will be handy if you want to add any other configure options. Cheers, Jonathan _______________________________________________ Flightgear-users mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-users
