I have a port that builds fine on a 9.3 amd64, but on 9.3 i386 it fails on this line:

inline int64 GetMaxMoney() { return nBestHeight <= HARDFORK_HEIGHT_1 ? 50000000000 * COIN : 25000000000 * COIN; }

With the following error:

"integer constant is too large for 'long' type"

If I add "USE_GCC=yes" to the port's Makefile, it builds successfully on i386. I'd like to apply this 'fix' only to the 32-bit platform so I did the following:

.if ${ARCH} == "i386"
USE_GCC=yes
.endif

Is that the 'correct' way to do things?

The port can be found here:
https://github.com/tuaris/FreeBSD-Coin-Ports/blob/master/ports/kittehcoin/Makefile#L80

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to