Replying to my own post (for reference):
--- On Sun, May 2, 2010 at 6:46 PM, Shakthi Kannan
wrote:
| Is there something that
| rpmbuild can import in its environment before starting the build,
| perhaps?
\--
I just checked that ~/.rpmmacros (at user-level) does override macros,
and /etc/rpm/macr
On Sun, May 02, 2010 at 06:46:03PM +0530, Shakthi Kannan wrote:
> This worked. I am wondering if it is possible to export CC, AS, LD and
> any other variables without having to patch the .spec file? Sourcing a
> file listing all the variables is one option. Is there something that
> rpmbuild can i
Hi,
--- On Sun, May 2, 2010 at 6:31 PM, Jos Vos wrote:
| Look how %configure is defined (with macros substitued):
|
| rpm --eval '%configure'
|
| If your path is not listed there, it will not be used, as the
| configure script internally will only refer to environment
| variables.
\--
I see.
On Sun, May 02, 2010 at 06:13:51PM +0530, Shakthi Kannan wrote:
> I tried to set the following in ~/.rpmmacros:
>
> %__cc /path/to/compiler-gcc
>
> and when I did rpmbuild -bc hello.spec, it shows:
>
> $ rpmbuild --showrc | grep cc
> rpmlib(ConcurrentAccess) = 4.1-1
> -14: _