aboutsummaryrefslogtreecommitdiff
path: root/cmd/fscrypt/flags.go
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2021-05-05 22:09:26 -0700
committerEric Biggers <ebiggers3@gmail.com>2021-05-05 22:22:20 -0700
commit677ae754e12d570bdc48efaacae83c0fb8b72e8b (patch)
tree2ebeeb5087936b370e0a40226b7b02d72cb82060 /cmd/fscrypt/flags.go
parent79795229bba45f6f58b8e0496a9a9e098f1c22aa (diff)
Specify -buildmode=c-shared after GO_FLAGS rather than before
When building pam_fscrypt.so, specify -buildmode=c-shared after $(GO_FLAGS) so that it overrides any user-specified buildmode. This is needed to allow -buildmode=pie to be specified in GO_FLAGS if the packager wants to build fscrypt as a position-independent executable (e.g. following https://wiki.archlinux.org/title/Go_package_guidelines). Previously, trying to do this caused pam_fscrypt.so to be incorrectly built as an executable rather than as a shared library.
Diffstat (limited to 'cmd/fscrypt/flags.go')
0 files changed, 0 insertions, 0 deletions