-
Improvement
-
Resolution: Fixed
-
Normal
-
None
-
None
Currently Funtoo uses Gentoo's OpenSSL ebuilds. One thing about those ebuilds does not sit right with me. If we take the most recent version (1.0.1g), and look at lines 111-120:
# See if our toolchain supports __uint128_t. If so, it's 64bit # friendly and can use the nicely optimized code paths. #460790 local ec_nistp_64_gcc_128 # Disable it for now though #469976 #if ! use bindist ; then # echo "__uint128_t i;" > "${T}"/128.c # if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then # ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128" # fi #fi
This choice has been made due to Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=469976
I think the rationale for this is astounding and want to suggest Funtoo to do it differently. Suggested alternative:
# See if our toolchain supports __uint128_t. If so, it's 64bit # friendly and can use the nicely optimized code paths. #460790 local ec_nistp_64_gcc_128 if ! use bindist ; then echo "__uint128_t i;" > "${T}"/128.c if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128" fi fi