diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2020-12-09 08:12:43 -0800 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2020-12-09 08:30:38 -0800 |
commit | 4d13894a85386feeca22ebf7c0f84f4173376e0f (patch) | |
tree | 961d8afcd8cced1c4c78791933edbd5d6e5cda5a /go/Makefile | |
parent | b9f056164180c4bd8acf75ed524d260bac9f4cf0 (diff) | |
download | libcap2-4d13894a85386feeca22ebf7c0f84f4173376e0f.tar.gz |
Further trim the psx headers and support easy vendoring.psx/v0.2.46-rc3
Remove psx_pthread_create() from libpsx - given the way -lpsx is
linked this is not needed.
Also, as pointed out by Lorenz Bauer, "go mod vendor" support
was unable to vendor a copy of psx_syscall.h because it didn't
reside in the same directory as the *.go code for the psx package.
(General discussion https://github.com/golang/go/issues/26366 .)
Given that we can, avoid the use of a sub-directory in the libcap
tree.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'go/Makefile')
-rw-r--r-- | go/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/go/Makefile b/go/Makefile index bfee9f4..b22a9bc 100644 --- a/go/Makefile +++ b/go/Makefile @@ -104,9 +104,8 @@ endif install: all rm -rf $(FAKEROOT)$(GOPKGDIR)/$(IMPORTDIR)/psx - mkdir -p $(FAKEROOT)$(GOPKGDIR)/$(IMPORTDIR)/psx/include/sys - for x in src/$(IMPORTDIR)/psx/* ; do if [ -d $$x ]; then continue; fi; install -m 0644 $$x $(FAKEROOT)$(GOPKGDIR)/$(IMPORTDIR)/psx; done - install -m 0644 src/$(IMPORTDIR)/psx/include/sys/psx_syscall.h $(FAKEROOT)$(GOPKGDIR)/$(IMPORTDIR)/psx/include/sys/psx_syscall.h + mkdir -p $(FAKEROOT)$(GOPKGDIR)/$(IMPORTDIR)/psx + install -m 0644 src/$(IMPORTDIR)/psx/* $(FAKEROOT)$(GOPKGDIR)/$(IMPORTDIR)/psx mkdir -p $(FAKEROOT)$(GOPKGDIR)/$(IMPORTDIR)/cap rm -rf $(FAKEROOT)$(GOPKGDIR)/$(IMPORTDIR)/cap/* install -m 0644 src/$(IMPORTDIR)/cap/* $(FAKEROOT)$(GOPKGDIR)/$(IMPORTDIR)/cap |