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.
Austin S. Hemmelgarn committed
Dec 8, 2020 at 11:51 UTC
1526cb77eea9895239218f0b73b33388524f1153
2 files changed
+7
-2
netdata-installer.sh
+6
-1
@@ -716,13 +716,18 @@ bundle_libwebsockets
716
717
build_judy() {
718
local env_cmd=''
719
+ local libtoolize="libtoolize"
720
721
if [ -z "${DONT_SCRUB_CFLAGS_EVEN_THOUGH_IT_MAY_BREAK_THINGS}" ]; then
722
env_cmd="env CFLAGS=-fPIC CXXFLAGS= LDFLAGS="
723
fi
724
725
+ if [ "$(uname)" = "Darwin" ]; then
726
+ libtoolize="glibtoolize"
727
+ fi
728
+
729
pushd "${1}" > /dev/null || return 1
725
- if run ${env_cmd} libtoolize --force --copy &&
730
+ if run ${env_cmd} ${libtoolize} --force --copy &&
731
run ${env_cmd} aclocal &&
732
run ${env_cmd} autoheader &&
733
run ${env_cmd} automake --add-missing --force --copy --include-deps &&
packaging/installer/methods/macos.md
+1
-1
@@ -53,7 +53,7 @@ Click **Install** on the Software Update popup window that appears. Then, use th
53
to install some of Netdata's prerequisites.
54
55
```bash
56
-brew install ossp-uuid autoconf automake pkg-config libuv lz4 json-c openssl@1.1
56
+brew install ossp-uuid autoconf automake pkg-config libuv lz4 json-c openssl@1.1 libtool
57
```
58
59
If you want to use the [database engine](/database/engine/README.md) to store your metrics, you need to download