Skip to content

Commit

Permalink
Fixed removal of fork() for tvOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Sep 15, 2019
1 parent fddfde6 commit ddc37b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions openssl/openssl-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ddc37b4

Please sign in to comment.