Greg,
Does the #Macros section in your .rpmrc file substitute for the .rpmmacros
file mentioned in the Mandrake rpm how-to? CyberCFO sent me your file when
I was trying to rebuild XFree86 for athlon-xp, but I could never get it to
work with it, or any other srpm as user, and always had to use --target
athlon, and the regular rpmrc file to rebuild srpms as root, which I know
isn't the preferred method. I have all the correct directories in /home as
required, but I must be missing something.
Robert Crawford
On Thursday 20 March 2003 11:57 pm, Greg Meyer wrote:
> On Thursday 20 March 2003 10:39 pm, Aaron Matteson wrote:
> > Quick question, maybe pretty simple. Here is the scenario, I want to
> > avoid adding --target=<athlon|pentium4> to the rpmbuild commandline
> > options, how exactly can i set GCC 3.2.x to build for this arch. by
> > default?
> >
> > I assume there is a config somewhere or a way at the commandline to set
> > GCC to this.
> >
> > Any help is much appriciated, tia.
>
> If you build your rpms as root (not recommended) create an /etc/rmrc file.
> If you build as user (best way) create a ~/.rpmrc file. When I did mine, I
> started with the /usr/lib/rpm/rpmrc file and modified it accordingly to do
> athlon-xp by default. Here is the contents:
>
>
> #############################################################
> #Macros
>
> macrofiles:
> /usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:/etc/rpm/macros.specspo:
>/etc/rpm/macros.db1:/etc/rpm/macros.cdb:/etc/rpm/macros:/etc/rpm/%{_target}/
>macros:~/.rpmmacros
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com