multiarch header file wrappers and ARM
Lennert Buytenhek
buytenh at wantstofly.org
Wed Oct 24 10:43:24 UTC 2007
On Tue, Oct 23, 2007 at 10:46:13PM -0500, Rex Dieter wrote:
> > On ARM, the preprocessor symbol __arm__ is defined, and %{_arch} is
> > set to 'arm', so something like this will work:
> >
> > #if defined(__i386__)
> > #include "blkid_types-i386.h"
> > +#elif defined(__arm__)
> > +#include "blkid_types-arm.h"
> > #elif defined(__ia64__)
> > #include "blkid_types-ia64.h"
> > #elif defined(__powerpc64__)
> >
> > If you have such a construct in your package, please consider adding
> > the relevant __arm__ bits.
>
> Is arm even capable of multilib'ing?
Nope.
> If not, why even bother with hacks like this?
Some packages, like apr, only substitute a wrapper header when the
package is built for a multilib arch, but other packages, like gmp,
substitute this header all the time.
So, yes, another solution would be to do it like apr and only
substitute on a multilib arch. That would solve it as well.
More information about the fedora-devel-list
mailing list