tech-pkg archive

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

Re: CMake help needed: graphics/openexr does not compile on big endian machines



__BSWAP_RENAME is defined by the system headers on amd64.
It looks wrong to check for it to me.

If you don't want to patch the files it should be possible to do

CXXFLAGS.NetBSD+=	-D__BSWAP_RENAME=1

but I have no idea what this might break.

I'd rather it simply did:

#include <sys/endian.h>
#define bswap_32(x) bswap32(x)

as it does on FreeBSD.


Home | Main Index | Thread Index | Old Index