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

Update lflags for homebrew on Apple Silicon #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ versions "NCURSES_REENTRANT"

## Building on macOS

The stock ncurses libraries on macOS don't include the wide libraries. Thus the full ncurses version needs to be installed with [Homebrew](https://brew.sh/). Homebrew installs ncurses below ```/usr/local/opt/ncurses```, where the dub configuration will pick it up.
The stock ncurses libraries on macOS don't include the wide libraries. Thus the full ncurses version needs to be installed with [Homebrew](https://brew.sh/). Homebrew installs ncurses below ```/usr/local/opt/ncurses``` (macOS Intel) or ```/opt/homebrew/opt/ncurses``` (Apple Silicon), where the dub configuration will pick it up.

First install Homebrew using the instructions on the web site, then you can add the ncurses package with

Expand Down
3 changes: 2 additions & 1 deletion dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ targetType "sourceLibrary" # .di files only
targetName "ncurses-d"

# Howebrew installs libncurses here:
lflags "-L/usr/local/opt/ncurses/lib" platform="osx"
lflags "-L/usr/local/opt/ncurses/lib" platform="osx-x86_64"
lflags "-L/opt/homebrew/opt/ncurses/lib" platform="osx-aarch64"

configuration "minimal" {
libs "ncursesw"
Expand Down