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

add Apple universal libraries build configuration. #24330

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cntrump
Copy link

@cntrump cntrump commented May 4, 2024

automatically determine toolchain location using xcrun.

  • no asm
  • only build static libraries
  • armv7 is deprecated for devices
  • i386 is deprecated for simulators

Examples

Build for macOS:

./Configure apple-universal-macosx enable-tls1_3 --prefix="$(pwd)/out/macosx" --libdir="$(pwd)/out/macosx/lib"
make clean
make -j
make install_sw

Build for macCatalyst:

./Configure apple-universal-maccatalyst enable-tls1_3 --prefix="$(pwd)/out/maccatalyst" --libdir="$(pwd)/out/maccatalyst/lib"
make clean
make -j
make install_sw

Build for iOS and simulator:

./Configure apple-universal-ios enable-tls1_3 --prefix="$(pwd)/out/ios" --libdir="$(pwd)/out/ios/lib"
make clean
make -j
make install_sw

./Configure apple-universal-iossim enable-tls1_3 --prefix="$(pwd)/out/iossim" --libdir="$(pwd)/out/iossim/lib"
make clean
make -j
make install_sw

Build for tvOS and simulator:

./Configure apple-universal-tvos enable-tls1_3 --prefix="$(pwd)/out/tvos" --libdir="$(pwd)/out/tvos/lib"
make clean
make -j
make install_sw

./Configure apple-universal-tvossim enable-tls1_3 --prefix="$(pwd)/out/tvossim" --libdir="$(pwd)/out/tvossim/lib"
make clean
make -j
make install_sw

Build for watchOS and simulator:

./Configure apple-universal-watchos enable-tls1_3 --prefix="$(pwd)/out/watchos" --libdir="$(pwd)/out/watchos/lib"
make clean
make -j
make install_sw

./Configure apple-universal-watchossim enable-tls1_3 --prefix="$(pwd)/out/watchossim" --libdir="$(pwd)/out/watchossim/lib"
make clean
make -j
make install_sw

Build for visionOS and simulator:

./Configure apple-universal-visionos enable-tls1_3 --prefix="$(pwd)/out/visionos" --libdir="$(pwd)/out/visionos/lib"
make clean
make -j
make install_sw

./Configure apple-universal-visionossim enable-tls1_3 --prefix="$(pwd)/out/visionossim" --libdir="$(pwd)/out/visionossim/lib"
make clean
make -j
make install_sw

@openssl-machine openssl-machine added the hold: cla required The contributor needs to submit a license agreement label May 4, 2024
@t8m t8m added branch: master Merge to master branch approval: review pending This pull request needs review by a committer approval: otc review pending This pull request needs review by an OTC member triaged: feature The issue/pr requests/adds a feature tests: exempted The PR is exempt from requirements for testing labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: otc review pending This pull request needs review by an OTC member approval: review pending This pull request needs review by a committer branch: master Merge to master branch hold: cla required The contributor needs to submit a license agreement tests: exempted The PR is exempt from requirements for testing triaged: feature The issue/pr requests/adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants