Skip to content

Commit

Permalink
fix(build): use Configure directly to support cross build on openssl …
Browse files Browse the repository at this point in the history
…1.1.1
  • Loading branch information
fffonion authored and AndyZhang0707 committed Jul 26, 2024
1 parent 0e10023 commit 930ca76
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build/openresty/openssl/openssl.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ CONFIGURE_OPTIONS = select({
"@kong//:x86_64-linux-glibc-cross": [
"linux-x86_64",
],
# no extra args needed for "@kong//:x86_64-linux-musl-cross" or non-cross builds
"//conditions:default": [],
# non-cross build
"@platforms//cpu:x86_64": [
"linux-x86_64",
],
"@platforms//cpu:aarch64": [
"linux-aarch64",
],
}) + [
"-g",
"-O3", # force -O3 even we are using --debug (for example on CI)
Expand Down Expand Up @@ -50,7 +55,7 @@ def build_openssl(

configure_make(
name = name,
configure_command = "config",
configure_command = "Configure",
configure_in_place = True,
configure_options = CONFIGURE_OPTIONS + extra_configure_options,
env = select({
Expand Down

0 comments on commit 930ca76

Please sign in to comment.