Skip to content

Commit

Permalink
telnet: fix for Apple Silicon (#57303)
Browse files Browse the repository at this point in the history
Co-authored-by: Bo Anderson <[email protected]>
  • Loading branch information
BytesGuy and Bo98 authored Jul 2, 2020
1 parent ba5a309 commit 7e1119b
Showing 1 changed file with 2 additions and 3 deletions.
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=#{Hardware::CPU.arch}",
"install"

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

0 comments on commit 7e1119b

Please sign in to comment.