diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 19e81013564..3ae2070175e 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -62,9 +62,12 @@ https://github.com/elastic/beats/compare/v6.0.0-alpha1...master[Check the HEAD d - Load Ingest Node pipelines when the Elasticsearch connection is established, instead of only once at startup. {pull}4479[4479] - Add support for loading Xpack Machine Learning configurations from the modules, and added sample configurations for the Nginx module. {pull}4506[4506] - Add udp prospector type. {pull}4452[4452] +- Enabled Cgo which means libc is dynamically compiled. {pull}4546[4546] *Heartbeat* +- Enabled Cgo which means libc is dynamically compiled. {pull}4546[4546] + *Metricbeat* - Add random startup delay to each metricset to avoid the thundering herd problem. {issue}4010[4010] - Add the ability to configure audit rules to the kernel module. {pull}4482[4482] diff --git a/libbeat/scripts/Makefile b/libbeat/scripts/Makefile index ba47fbca214..8ed9d5c1780 100755 --- a/libbeat/scripts/Makefile +++ b/libbeat/scripts/Makefile @@ -56,12 +56,12 @@ PYTHON_ENV?=${BUILD_DIR}/python-env BUILDID?=$(shell git rev-parse HEAD) ## @Building The build ID VIRTUALENV_PARAMS?= INTEGRATION_TESTS?= -CGO?=false ## @building if true, Build with C Go support FIND=. ${PYTHON_ENV}/bin/activate; find . -type f -not -path "*/vendor/*" -not -path "*/build/*" -not -path "*/.git/*" # Cross compiling targets -TARGETS?="linux/amd64 linux/386 windows/amd64 windows/386 darwin/amd64" ## @building list of platforms/architecture to be built by "make package" -TARGETS_OLD?="" ## @building list of Debian6 architecture to be built by "make package" when CGO is true +CGO?=true ## @building if true, Build with C Go support +TARGETS?="windows/amd64 windows/386 darwin/amd64" ## @building list of platforms/architecture to be built by "make package" +TARGETS_OLD?="linux/amd64 linux/386" ## @building list of Debian6 architecture to be built by "make package" when CGO is true PACKAGES?=${BEAT_NAME}/deb ${BEAT_NAME}/rpm ${BEAT_NAME}/darwin ${BEAT_NAME}/win ${BEAT_NAME}/bin ## @Building List of OS to be supported by "make package" SNAPSHOT?=yes ## @Building If yes, builds a snapshot version BEATS_BUILDER_IMAGE?=tudorg/beats-builder ## @Building Name of the docker image to use when packaging the application diff --git a/metricbeat/Makefile b/metricbeat/Makefile index 7c405e6c6c3..f6819eb5f9e 100644 --- a/metricbeat/Makefile +++ b/metricbeat/Makefile @@ -8,10 +8,6 @@ TEST_ENVIRONMENT?=true GOPACKAGES=$(shell go list ${BEAT_PATH}/... | grep -v /vendor/) ES_BEATS?=.. -TARGETS?="windows/amd64 windows/386 darwin/amd64" -TARGETS_OLD?="linux/amd64 linux/386" -CGO=true - # Metricbeat can only be cross-compiled on platforms not requiring CGO. GOX_OS=solaris netbsd linux windows GOX_FLAGS=-arch="amd64 386 arm ppc64 ppc64le" diff --git a/packetbeat/Makefile b/packetbeat/Makefile index b2c1dafa048..532b0808c6d 100644 --- a/packetbeat/Makefile +++ b/packetbeat/Makefile @@ -3,9 +3,6 @@ BEAT_NAME?=packetbeat BEAT_DESCRIPTION?=Packetbeat analyzes network traffic and sends the data to Elasticsearch. SYSTEM_TESTS?=true TEST_ENVIRONMENT=false -TARGETS="windows/amd64 windows/386 darwin/amd64" -TARGETS_OLD="linux/amd64 linux/386" -CGO=true ES_BEATS?=.. include ${ES_BEATS}/libbeat/scripts/Makefile diff --git a/winlogbeat/Makefile b/winlogbeat/Makefile index 18a27bef609..2ed6973f8e6 100644 --- a/winlogbeat/Makefile +++ b/winlogbeat/Makefile @@ -7,6 +7,8 @@ GOX_OS=windows TARGETS="windows/amd64 windows/386" PACKAGES=winlogbeat/win +CGO=false # don't need Cgo in Winlogbeat + include ../libbeat/scripts/Makefile .PHONY: gen