Cameron Lowell Palmer
Cameron Lowell Palmer

Reputation: 22225

OpenSSL - compile out of source

Is it possible to compile v1.0.2n of OpenSSL out of source which is desirable when building for a number of different architectures? The Configure perl script assumes that all paths are relative to the build directory rather than the source directory. Which leads to a bunch of unable to locate file errors.

Upvotes: 1

Views: 1208

Answers (1)

Cameron Lowell Palmer
Cameron Lowell Palmer

Reputation: 22225

The short answer is not really. In the documentation for OpenSSL you can find a paragraph about using symbolic links to provide the out-of-source build, but that really is a lot of trouble, especially if you're doing some sort of build-system automation.

You can look at my CMake OpenSSL for iOS project and see that I just treat OpenSSL as disposable. You can make this better by checking in OpenSSL to git and then resetting the source directory when you're done.

git reset --hard
git clean -f -d

Upvotes: 1

Related Questions