summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2020-12-08 11:51:46 -0500
committerGitHub <noreply@github.com>2020-12-08 11:51:46 -0500
commit1526cb77eea9895239218f0b73b33388524f1153 (patch)
tree3722b78a63e5cb5071e7e912e418483cf7d096e9 /netdata-installer.sh
parent63e91d345911c7c3ed432ae440213635f60216a5 (diff)
Use `glibtoolize` on macOS instead of regular `libtoolize`. (#10346)
* Use `glibtoolize` on macOS instead of regular `libtoolize`. This ensures we get the version from Homebrew instead of the version from XCode. * Update install documentation for macOS.
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-xnetdata-installer.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index 3eb9b433a6..c812b36ca4 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -716,13 +716,18 @@ bundle_libwebsockets
build_judy() {
local env_cmd=''
+ local libtoolize="libtoolize"
if [ -z "${DONT_SCRUB_CFLAGS_EVEN_THOUGH_IT_MAY_BREAK_THINGS}" ]; then
env_cmd="env CFLAGS=-fPIC CXXFLAGS= LDFLAGS="
fi
+ if [ "$(uname)" = "Darwin" ]; then
+ libtoolize="glibtoolize"
+ fi
+
pushd "${1}" > /dev/null || return 1
- if run ${env_cmd} libtoolize --force --copy &&
+ if run ${env_cmd} ${libtoolize} --force --copy &&
run ${env_cmd} aclocal &&
run ${env_cmd} autoheader &&
run ${env_cmd} automake --add-missing --force --copy --include-deps &&