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 macos init sh #709

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 5 additions & 1 deletion prepare.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
if ($p->isMacos()) {
$p->setExtraLdflags('-undefined dynamic_lookup');
if (is_file('/usr/local/opt/llvm/bin/ld64.lld')) {
$p->withBinPath('/usr/local/opt/llvm/bin')->setLinker('ld64.lld');
$p->withBinPath('/usr/local/opt/llvm/bin')
->withBinPath('/opt/homebrew/opt/flex/bin')
->withBinPath('/opt/homebrew/opt/bison/bin')
->withBinPath('/opt/homebrew/opt/libtool/bin')
->withBinPath('/opt/homebrew/opt/m4/bin')->setLinker('ld64.lld');
} else {
$p->setLinker('lld');
}
Expand Down
2 changes: 1 addition & 1 deletion sapi/quickstart/macos/macos-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fi
# 详见: https://github.com/pyenv/pyenv/wiki/Common-build-problems#keg-only-homebrew-packages-are-forcibly-linked--added-to-path

# 已安装的包 跳过安装
PACKAGES_1=(wget curl libtool automake re2c llvm flex bison)
PACKAGES_1=(wget curl libtool automake re2c llvm flex bison m4)
PACKAGES_2=(libtool gettext coreutils libunistring pkg-config cmake)

PACKAGES=("${PACKAGES_1[@]}" "${PACKAGES_2[@]}")
Expand Down
Loading