Re: %bits macro?

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

 



On Fri, Feb 29, 2008 at 02:48:38PM -0700, Orion Poplawski wrote:
> It might me useful to have a %bits macro automatically set to 32 or 64 as 
> appropriate.  Does this seem useful or is there a better way?
>
> I'm try to follow the following tip from 
> http://fedoraproject.org/wiki/PackagingDrafts/MultilibTricks:
>
> #if __WORDSIZE == 32
> #include "myautoconfig-32.h"
> #elif __WORDSIZE == 64
> #include "myautoconfig-64.h"
> #else
> #error "Unknown word size"
> #endif
>
> So in my spec I want to move "myautoconfig.h" to "myautoconfig-32.h" (or 
> 64) as appropriate.  Would be nice to do:
>
> mv myautoconfig.h myautoconfig-%{bits}.h
>
> Thoughts?

You can use %_arch instead.

--
Pat

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux