Overriding RPM macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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: __cc        /path/to/compiler-gcc
  -14: __cpp     gcc -E

But, when I use rpmbuild -bc hello.spec, the configure script still
takes cc as /usr/bin/gcc from /usr/lib/rpm/macros. Why is it so?

Only when I do something like, CC=/path/to/compiler-gcc rpmbuild -bc
hello.spec, does the new CC used for building the package. Why isn't
~/.rpmmacros overriding the default macros?

Appreciate any inputs,

Thanks!

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux