Use GCC only for specific ARCH

Daniel Morante daniel at morante.net
Wed Dec 10 08:24:36 UTC 2014


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 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3742 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20141210/1173bf51/attachment.bin>


More information about the freebsd-ports mailing list