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

COMP: Fix OpenSSL build on macOS setting SDKROOT in build script #4883

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Apr 23, 2020

This commit fixes a regression introduced in ddeb0a3 (COMP: Fix
OpenSSL build on Mac 10.15 XCode 11.4.1 (#4857)) originally intended
to fix issue #4681

Setting the SDKROOT environment variable worked as expected on a regular
developer build but failed on a dashboard build where the invocation of
"make" is wrapped using a "launcher" [1]

This commit addresses the issue by writing a CMake script that will set
the environment and then invoke make.

Last, since file descriptors expect by the make jobserver are not kept
open by the CMake process, the build script explicitly unset MAKEFLAGS
to avoid "warning: -jN forced in submake: disabling jobserver mode."
For more details, see [2]

[1] https://cmake.org/cmake/help/latest/manual/ctest.1.html#ctest-build-step
[2] https://stackoverflow.com/questions/29910944/is-it-possible-to-pass-through-gnu-make-jobserver-environment-to-a-submake-ser

This commit fixes a regression introduced in  ddeb0a3 (COMP: Fix
OpenSSL build on Mac 10.15 XCode 11.4.1 (Slicer#4857)) originally intended
to fix issue Slicer#4681

Setting the SDKROOT environment variable worked as expected on a regular
developer build but failed on a dashboard build where the invocation of
"make" is wrapped using a "launcher" [1]

This commit addresses the issue by writing a CMake script that will set
the environment and then invoke make.

Last, since  file descriptors expect by the make jobserver are not kept
open by the CMake process, the build script explicitly unset MAKEFLAGS
to avoid "warning: -jN forced in submake: disabling jobserver mode."
For more details, see [2]

[1] https://cmake.org/cmake/help/latest/manual/ctest.1.html#ctest-build-step
[2] https://stackoverflow.com/questions/29910944/is-it-possible-to-pass-through-gnu-make-jobserver-environment-to-a-submake-ser
@jcfr
Copy link
Member Author

jcfr commented Apr 23, 2020

Merging, change tested on Linux and macOS

Cc: @sjh26 @pieper @hjmjohnson

@jcfr jcfr merged commit 1bc8358 into Slicer:master Apr 23, 2020
@jcfr jcfr deleted the fix-macos-openssl-build branch April 23, 2020 04:28
@jcfr jcfr linked an issue Apr 23, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

No /usr/include on macOS Mojave
1 participant