Only use enable-ec_nistp_64_gcc_128 on amd64 since it requires a 64-bit little-endian architecture and fix the build on !amd64 ecp_nistp224.c:43:9: error: unknown type name '__uint128_t' typedef __uint128_t uint128_t; /* nonstandard; implemented by gcc on 64-bit ^ PR: 220403 Reported by: dewayne@heuristicsystems.com.au Approved by: ??? (mentor) Differential Revision: https://reviews.freebsd.org/D11436 MFH: 2017Q3
Details
poudriere testport 10.3/i386, 11.0/i386, 11.0/amd64 ok
Diff Detail
- Repository
- rP FreeBSD ports repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Maybe it could be conditional on it being i386 ?
Sure, I have copied security/openssl's approach now.
security/testssl.sh/Makefile | ||
---|---|---|
53–59 ↗ | (On Diff #30352) | Mmmm, this is absolutely not the same thing as "does not work on i386". Also, it makes it possible to disable it on amd64. I was more thinking in the way of .if ${ARCH} == "i386" |
security/testssl.sh/Makefile | ||
---|---|---|
53–59 ↗ | (On Diff #30352) | The real problem is that enable-ec_nistp_64_gcc_128 requires a 64-bit
Sure, but this isn't a problem on amd64 and it'll still build fine But I can use something like this you think it's better than using .if ${ARCH} == "amd64" CONFIGURE_ARGS+= enable-ec_nistp_64_gcc_128 .else CONFIGURE_ARGS+= no-ec_nistp_64_gcc_128 .endif |
security/testssl.sh/Makefile | ||
---|---|---|
53–59 ↗ | (On Diff #30352) | That looks better, yes. (But then again, the review was "fix on i386", it should be "fix on !amd64") |