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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ stacker: stacker-dynamic
--substitute LXC_BRANCH=$(LXC_BRANCH)

stacker-static: $(GO_SRC) go.mod go.sum cmd/lxc-wrapper/lxc-wrapper
$(call build_stacker,static_build,-extldflags '-static -lblkid -luuid -ljson-c -ldevmapper ',stacker)
$(call build_stacker,static_build,-extldflags '-static',stacker)

# TODO: because we clean lxc-wrapper in the nested build, this always rebuilds.
# Could find a better way to do this.
Expand Down
10 changes: 10 additions & 0 deletions squashfs/verity_static.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//go:build static_build
// +build static_build

package squashfs

// cryptsetup's pkgconfig is broken (it does not set Requires.private or
// Libs.private at all), so we do the LDLIBS for it by hand.

// #cgo LDFLAGS: -lcryptsetup -lcrypto -lssl -lblkid -luuid -ljson-c -lpthread -ldl
import "C"