Skip to content
Merged
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
3 changes: 3 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ For example:

The static command requires `libLLVMGoALLC.a` to have been assembled first.
The GoALLC toolchain does this automatically for `-llvm-link=static`.
The final link also consumes the system libraries reported by the selected
LLVM build. On Darwin, zstd is resolved with `pkg-config libzstd`; the
development package must be installed and discoverable through pkg-config.

Do not select multiple version tags or multiple link-mode tags in one build.

Expand Down
1 change: 1 addition & 0 deletions llvm_link_static.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package llvm

/*
#cgo darwin LDFLAGS: -L${SRCDIR} -lLLVMGoALLC -lm -lz -lxml2
#cgo darwin pkg-config: libzstd
#cgo linux LDFLAGS: -L${SRCDIR} -lLLVMGoALLC -lm -lz -lzstd -lxml2 -ldl -lpthread -lrt
*/
import "C"
Expand Down
Loading