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

Build Telnet for Apple Silicon #57303

Merged
merged 4 commits into from
Jul 2, 2020
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Formula/telnet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ def install
ENV["SDKROOT"] = MacOS.sdk_path
ENV["MACOSX_DEPLOYMENT_TARGET"] = MacOS.version

# Force 64 bit-only build, otherwise it fails on Mojave
xcodebuild "SYMROOT=build", "-arch", "x86_64"
xcodebuild "SYMROOT=build", "-arch", Hardware::CPU.arch

libtelnet_dst = buildpath/"telnet.tproj/build/Products"
libtelnet_dst.install "build/Release/libtelnet.a"
Expand All @@ -39,7 +38,7 @@ def install
"DSTROOT=build/Archive",
"CFLAGS=$(CC_Flags) -isystembuild/Products/",
"LDFLAGS=$(LD_Flags) -Lbuild/Products/",
"RC_ARCHS=x86_64", # Force 64-bit build for Mojave
"RC_ARCHS=%s" % Hardware::CPU.arch,
BytesGuy marked this conversation as resolved.
Show resolved Hide resolved
"install"

bin.install "telnet.tproj/build/Archive/usr/local/bin/telnet"
Expand Down