krzyzanowskim / OpenSSL

OpenSSL package for SwiftPM, CocoaPod, and Carthage, multiplatform
https://swift.best
Other
920 stars 340 forks source link

Fails to build OpenSSL 1.1.* due to misconfiguration #50

Closed WarpRulez closed 5 years ago

WarpRulez commented 5 years ago

It appears that with OpenSSL 1.0. the main parameter to the Configure script to determine the installation directory was --openssldir (with --prefix defaulting to it), while in the 1.1. versions it's --prefix. Build.sh seems to assume the former, causing "make install" to actually install the libraries into the system directories, rather than /tmp. (This can be highly annoying if you were running the script with admin rights, as I found out. A lesson to be learned, for certain.) As a consequence, not only is the OpenSSL library installed into the system rather than /tmp, the building of the universal libcrypto.a fails to be done properly.