From ddc37b49dd1cf2ee15c3fda55b38630515a02694 Mon Sep 17 00:00:00 2001 From: Jason Cox Date: Sat, 14 Sep 2019 22:06:28 -0700 Subject: [PATCH] Fixed removal of fork() for tvOS build --- README.md | 3 +++ openssl/openssl-build.sh | 1 + 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index a2d600e..93a1e5f 100644 --- a/README.md +++ b/README.md @@ -224,3 +224,6 @@ If the `build.sh` script fails during iOS build phase with an error "C Compiler If you see "FATAL ERROR" during the nghttp2 build phase, this is likely due to not having 'pkg-config' tools installed. Install manually or install 'brew' to have the script install it for you. +If you are on a new macOS installation and wonder why the build is failing, you might need to set the correct path for the command line tools: + + xcode-select --switch /Applications/Xcode.app diff --git a/openssl/openssl-build.sh b/openssl/openssl-build.sh index 5f26e6b..a9b495b 100755 --- a/openssl/openssl-build.sh +++ b/openssl/openssl-build.sh @@ -160,6 +160,7 @@ buildTVOS() if [[ "$OPENSSL_VERSION" = "openssl-1.1.1"* ]]; then LANG=C sed -i -- 's/!defined(OPENSSL_NO_POSIX_IO)/defined(HAVE_FORK)/' "./apps/ocsp.c" LANG=C sed -i -- 's/fork()/-1/' "./apps/ocsp.c" + LANG=C sed -i -- 's/fork()/-1/' "./test/drbgtest.c" LANG=C sed -i -- 's/!defined(OPENSSL_NO_ASYNC)/defined(HAVE_FORK)/' "./crypto/async/arch/async_posix.h" fi