%bits macro?

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

 



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?

--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion@xxxxxxxxxxxxx
Boulder, CO 80301              http://www.cora.nwra.com

--
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