Skip to content

Commit

Permalink
Adapt BoringSSL for Cobalt
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlstrom-g committed Jan 20, 2024
1 parent 5c50f21 commit 2101749
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions third_party/boringssl/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,12 @@ if (use_cobalt_customizations) {
deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
}

if (!use_cobalt_customizations) {
if (!is_debug && !optimize_for_size) {
configs -= [ "//build/config/compiler:default_optimization" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
}

if (is_starboard) {
sources -= [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "fork_detect.h"

#if defined(OPENSSL_LINUX)
#if defined(OPENSSL_LINUX) && !defined(OPENSSL_SYS_STARBOARD) // avoid calls to madvise and sysconf
#include <sys/mman.h>
#include <unistd.h>
#include <stdlib.h>
Expand Down

0 comments on commit 2101749

Please sign in to comment.