mirror of
https://github.com/ziglang/zig.git
synced 2024-12-13 14:47:09 +00:00
Force static libncurses in CMakeLists when static zig on macos
Add additional search paths pointing at homebrew prefixes as Apple doesn't ship a static libncurses for linking - only a stub for dynamic linking `libncurses.tbd`.
This commit is contained in:
parent
a4aff36fb3
commit
2ca5a859e9
@ -116,7 +116,10 @@ endif()
|
||||
|
||||
if(APPLE AND ZIG_STATIC)
|
||||
list(REMOVE_ITEM LLVM_LIBRARIES "-lcurses")
|
||||
find_library(CURSES NAMES libcurses.a curses libcurses libncurses.a ncurses libncurses)
|
||||
find_library(CURSES NAMES libcurses.a libncurses.a
|
||||
PATHS
|
||||
/usr/local/opt/ncurses/lib
|
||||
/opt/homebrew/opt/ncurses/lib)
|
||||
list(APPEND LLVM_LIBRARIES "${CURSES}")
|
||||
endif()
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
set -x
|
||||
set -e
|
||||
|
||||
brew update && brew install s3cmd
|
||||
brew update && brew install ncurses s3cmd
|
||||
|
||||
ZIGDIR="$(pwd)"
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
set -x
|
||||
set -e
|
||||
|
||||
brew update && brew install s3cmd
|
||||
brew update && brew install ncurses s3cmd
|
||||
|
||||
ZIGDIR="$(pwd)"
|
||||
ARCH="x86_64"
|
||||
|
Loading…
Reference in New Issue
Block a user