Skip to content

libpkg: link with "libtool --mode=link $(CC)" on macOS#2618

Draft
khorben wants to merge 1 commit intofreebsd:mainfrom
khorben:khorben/macos-libtool-mode
Draft

libpkg: link with "libtool --mode=link $(CC)" on macOS#2618
khorben wants to merge 1 commit intofreebsd:mainfrom
khorben:khorben/macos-libtool-mode

Conversation

@khorben
Copy link
Copy Markdown
Contributor

@khorben khorben commented Mar 5, 2026

This avoids the following error on macOS, with libtool from pkgsrc:

libtool: Missing --mode=XXX

Tested on Darwin/amd64.

@michael-o
Copy link
Copy Markdown
Member

Reminds me of apache/apr@a1e6225

This avoids the following error on macOS, with libtool from pkgsrc:
libtool: Missing --mode=XXX

Tested on Darwin/amd64.

With help from michael-o; thanks!
@khorben khorben force-pushed the khorben/macos-libtool-mode branch from 246e2a1 to 1b8d71b Compare April 17, 2026 12:04
@khorben
Copy link
Copy Markdown
Contributor Author

khorben commented Apr 17, 2026

Reminds me of apache/apr@a1e6225

With the addition of --tag=CC, it seems to un-break the builds on Ubuntu, Alpine, Debian, and FreeBSD, while also improving the situation on macOS for me. Thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants