Lines Matching +full:go +full:- +full:version
1 # Common version number defines for libcap
3 VERSION=2
14 # Autoconf-style prefixes are activated when $(prefix) is defined.
21 lib=$(shell ldd /usr/bin/ld|egrep "ld-linux|ld.so"|cut -d/ -f2)
46 # From here on out, the Go module packages should always remain
47 # backwardly compatible. I will only resort to using major version 2
48 # etc if Go's syntax dramatically changes in a backwards incompatible
55 IPATH += -fPIC -I$(KERNEL_HEADERS) -I$(topdir)/libcap/include
58 DEFINES := -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
59 COPTS ?= -O2
62 BUILD_COPTS ?= -O2
67 DEBUG = -g #-DDEBUG
68 WARNINGS=-Wall -Wwrite-strings \
69 -Wpointer-arith -Wcast-qual -Wcast-align \
70 -Wstrict-prototypes -Wmissing-prototypes \
71 -Wnested-externs -Winline -Wshadow
72 LD=$(CC) -Wl,-x -shared
73 LDFLAGS ?= #-g
74 LIBCAPLIB := -L$(topdir)/libcap -lcap
75 PSXLINKFLAGS := -lpthread -Wl,-wrap,pthread_create
76 LIBPSXLIB := -L$(topdir)/libcap -lpsx $(PSXLINKFLAGS)
82 CFLAGS += -Dlinux $(WARNINGS) $(DEBUG)
83 INDENT := $(shell if [ -n "$$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi)
89 # DYNAMIC controls how capsh etc are linked - to shared or static libraries
90 DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo $(SHARED); else echo no ; fi)
92 PAM_CAP ?= $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo $(SHARED) ; else echo n…
98 # This implies no Go support and no C/C++ libpsx build. Why might you
99 # need libpsx for non-Go use? Tl;dr for POSIX semantics security:
101 # https://sites.google.com/site/fullycapable/who-ordered-libpsx
106 GO ?= go
107 GOLANG ?= $(shell if [ -n "$(shell $(GO) version 2>/dev/null)" ]; then echo yes ; else echo no ; fi)
109 GOROOT ?= $(shell $(GO) env GOROOT)
110 GOCGO ?= $(shell if [ "$(shell $(GO) env CGO_ENABLED)" = 1 ]; then echo yes ; else echo no ; fi)
111 GOOSARCH ?= $(shell $(GO) env GOHOSTOS)_$(shell $(GO) env GOHOSTARCH)
112 CGO_REQUIRED=$(shell $(topdir)/go/cgo-required.sh $(GO))
115 # real golang support arrives for non-cgo support, so drop the last
117 CGO_LDFLAGS_ALLOW := CGO_LDFLAGS_ALLOW="-Wl,-?-wrap[=,][^-.@][^,]*"
119 CGO_CFLAGS := -I$(topdir)/libcap/include
120 CGO_LDFLAGS := -L$(topdir)/libcap
127 # make CAPSH_SHELL='-DSHELL=\"/bin/sh\"'
130 #CAPSH_SHELL := '-DSHELL="/bin/sh"'
144 # the environment for what became known as the sendmail-capabilities
149 # they are also nullifying the difference between a p-bit and an i-bit.
158 # any capability - a ready made local exploit mechanism.
161 # If set to yes, this will cause the go "web" demo app to force the needed p
167 LOCALCLEAN=rm -f *~ core
168 DISTCLEAN=@find . \( -name '*.orig' -o -name '*.rej' \) | xargs rm -f