Created attachment 1110600 [details] Add-support-for-MIPS.patch Description of problem: We are trying to bring Fedora to MIPS platform and this requires adding support for MIPS to openssl specfile and opensslconf-new.h Actual results: No MIPS support in openssl package Expected results: openssl package builds and works on MIPS Additional info: Attaching a dist-git patch.
Comment on attachment 1110600 [details] Add-support-for-MIPS.patch Note that enable-ec_nistp_64_gcc_128 does not work properly on big endian architectures. I do not know whether mips is big or little endian though. Also what you're trying to achieve with the -mips32/64r2 option? Shouldn't that be rather handled via the RPM_OPT_FLAGS?
(In reply to Tomas Mraz from comment #1) > Note that enable-ec_nistp_64_gcc_128 does not work properly on big endian > architectures. I do not know whether mips is big or little endian though. MIPS can do both, we are using mips/mips64 for BE and mipsel/mips64el for LE. You are right though, there is a missing ifarch. > Also what you're trying to achieve with the -mips32/64r2 option? Shouldn't > that be rather handled via the RPM_OPT_FLAGS? This is somewhat strange to me as well. RPM_OPT_FLAGS has -march=mips32r2 / -march=mips64r2 but openssl does not pick that up and adds its default (-mips2 / -mips3) to the command line. This results into a conflict. Specifying -mips32r2 / -mips64r2 explicitly fixes the problem or well... it is a workaround. We should probably make the toolchain recognize -march=*. Attaching logs.
Created attachment 1110718 [details] openssl-mipsel.log
Created attachment 1110719 [details] openssl-mips64el.log