Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(buildtool): use list for OpenSSL ./Configure flags #1367

Merged
merged 10 commits into from
Oct 12, 2023

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Oct 12, 2023

We currently have a string variable in cBuildEnv named OPENSSL_API_DEFINE that we append to OpenSSL's ./Configure invocation to force using the proper Android API. However, for building for iOS (a need documented by ooni/probe#2564), we need a list of strings, because there is more than a single scalar that we need to append to the ./Configure invocation (as shown by the MVP implementation at #1366).

Hence, this diff, which introduces a string list named OPENSSL_POST_COMPILER_FLAGS that contains strings to append to the ./Configure command line after the OS/compiler flag. We specifically named the variable "post compiler" because there is another variable in the same cBuildEnv struct called OPENSSL_COMPILER.

@bassosimone bassosimone requested a review from hellais as a code owner October 12, 2023 08:50
@bassosimone bassosimone merged commit 76c140f into master Oct 12, 2023
46 checks passed
@bassosimone bassosimone deleted the fullbuild branch October 12, 2023 09:48
bassosimone added a commit that referenced this pull request Oct 12, 2023
This diff backports #1367 to the release/3.19 branch.

We currently have a string variable in `cBuildEnv` named
`OPENSSL_API_DEFINE` that we append to OpenSSL's `./Configure`
invocation to force using the proper Android API. However, for building
for iOS (a need documented by
ooni/probe#2564), we need a list of strings,
because there is more than a single scalar that we need to append to the
`./Configure` invocation (as shown by the MVP implementation at
#1366).

Hence, this diff, which introduces a string list named
`OPENSSL_POST_COMPILER_FLAGS` that contains strings to append to the
`./Configure` command line _after_ the OS/compiler flag. We specifically
named the variable "post compiler" because there is another variable in
the same `cBuildEnv` struct called `OPENSSL_COMPILER`.
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
We currently have a string variable in `cBuildEnv` named
`OPENSSL_API_DEFINE` that we append to OpenSSL's `./Configure`
invocation to force using the proper Android API. However, for building
for iOS (a need documented by
ooni/probe#2564), we need a list of strings,
because there is more than a single scalar that we need to append to the
`./Configure` invocation (as shown by the MVP implementation at
ooni#1366).

Hence, this diff, which introduces a string list named
`OPENSSL_POST_COMPILER_FLAGS` that contains strings to append to the
`./Configure` command line _after_ the OS/compiler flag. We specifically
named the variable "post compiler" because there is another variable in
the same `cBuildEnv` struct called `OPENSSL_COMPILER`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant