Create a binary with statically linked dependencies #2977
-
|
Hey! 👋 I'm looking into updating the ctags binary in https://github.com/textmate/ctags.tmbundle to the latest version. The TextMate bundle seem to have a statically linked binary of kevinsjoberg@Kevins-MacBook-Pro ~/c/ctags.tmbundle (master)> otool -L Support/bin/ctags-objc
Support/bin/ctags-objc:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)I'm fairly inexperienced when it comes to C and its tooling, so I'm not 100% sure how I would go about building a statically linked binary. It only needs to run on macOS since TextMate is a macOS application. I found a flag, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 17 replies
-
|
you can not use |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Anyway, a binary via GitHub releases would be cool, allowing installation via zinit zsh plugin manager, like dstask, fd, bat, fzf and others. |
Beta Was this translation helpful? Give feedback.
you can not use
--enable-staticflags onmacOS, becausemacOSnot provide/usr/lib/libSystem.B.a