diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-12-10 16:57:36 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-12-10 17:01:19 +0200 |
commit | cf029192e4ac9ce0e24ddfd880f5f9d557cf9c28 (patch) | |
tree | b0ad24e53f22dd7f20eb38e81d1375e0a768e4ab /external | |
parent | 9ad6f07e0b5494e55d70642120f173961845ce30 (diff) |
Add --with-prebuilt-openssl
Don't ask.
Oh well, if you want to know: For some people, like me, Cygwin and its
Perl run into horrible trouble with the fork() emulation when building
OpenSSL. (But my Cygwin works fine for all else in the build. Go
figure.)
So I came up with a way to use prebuilt OpenSSL binaries. Not to be
used for release builds, of course (and the configury checks for
that), as long as our policy is to build all we can from sources.
Change-Id: Ic303bdf0c620c5122aca3d646fa1f0587221e70f
Diffstat (limited to 'external')
-rw-r--r-- | external/openssl/ExternalProject_openssl.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/external/openssl/ExternalProject_openssl.mk b/external/openssl/ExternalProject_openssl.mk index ea5f8b22b1c8..c22ec7bfc417 100644 --- a/external/openssl/ExternalProject_openssl.mk +++ b/external/openssl/ExternalProject_openssl.mk @@ -60,6 +60,8 @@ OPENSSL_PLATFORM := \ ifeq ($(COM),MSC) $(call gb_ExternalProject_get_state_target,openssl,build): + $(if $(filter PREBUILT_OPENSSL,$(BUILD_TYPE)),\ + cd $(BUILDDIR) && $(GNUTAR) -x -f $(gb_UnpackedTarget_TARFILE_LOCATION)/$(PREBUILT_OPENSSL_TARBALL),\ $(call gb_ExternalProject_run,build,\ export CC="$(shell cygpath -w $(filter-out -%,$(CC))) $(filter -%,$(CC))" \ && export PERL="$(shell cygpath -w $(PERL))" \ @@ -68,7 +70,7 @@ $(call gb_ExternalProject_get_state_target,openssl,build): && cmd /c "ms\do_ms.bat $(PERL) $(OPENSSL_PLATFORM)" \ && unset MAKEFLAGS \ && nmake -f "ms\ntdll.mak" \ - ) + )) else $(call gb_ExternalProject_get_state_target,openssl,build): |