diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2020-07-03 15:27:09 -0700 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2020-07-03 15:40:58 -0700 |
commit | ffa7df01d30b5e4c26eb955d9baf76a7c8e0d1b1 (patch) | |
tree | 6f4740f784786289890cedf53521755321defe4a /Makefile | |
parent | b0d13e87db7ac821e6688cb32078cf7393d3f202 (diff) | |
download | libcap-ffa7df01d30b5e4c26eb955d9baf76a7c8e0d1b1.tar.gz |
Refactored the psx package to build as a Go module.
Cleaned up the Go module redirection html file, now installed
at:
https://kernel.org/pub/linux/libs/security/libcap/
Note, I've moved the C source for libpsx.a into the psx/
directory, but the libpsx.a file is still built in the libcap
subdirectory as before. I also symlinked the C include files from
the psx/ directory. This made the source compile in conjuction
with the "psx" Go package automatically. It also substantially
simplified the go/Makefile.
I feel pretty good about this next version from the perspective
of a viable "psx" build. Caveat the need for CGO_LDFLAGS_ALLOW
on the command line pre-go1.15. Hopefully, the psx package comment
is enough for folk to figure that detail out.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -15,6 +15,7 @@ ifneq ($(PAM_CAP),no) endif ifeq ($(GOLANG),yes) $(MAKE) -C go $@ + rm -f cap/go.sum endif $(MAKE) -C tests $@ $(MAKE) -C progs $@ @@ -30,6 +31,8 @@ clean-here: distclean: clean $(DISTCLEAN) + @echo "CONFIRM Go package cap has right version dependency on psx:" + grep -F "require kernel.org/pub/linux/libs/security/libcap/psx v$(GOMAJOR).$(VERSION).$(MINOR)" cap/go.mod release: distclean cd .. && ln -s libcap libcap-$(VERSION).$(MINOR) && tar cvf libcap-$(VERSION).$(MINOR).tar --exclude patches libcap-$(VERSION).$(MINOR)/* && rm libcap-$(VERSION).$(MINOR) |