Unable to build 0.6.4 from master on OSX 10.12.6, libtool


#1

I keep running into these problems:

[ 0%] Linking CXX static library …/libLLVMSupport.a
Usage: /usr/local/bin/libtool [OPTION]… [MODE-ARG]…
Try ‘libtool --help’ for more information.
libtool: error: unrecognised option: ‘-static’
make[4]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/build.make:1525: lib/libLLVMSupport.a] Error 1
make[3]: *** [CMakeFiles/Makefile2:310: lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make[2]: *** [Makefile:152: all] Error 2
make[1]: *** [/Users/luciaminahyang/julia/deps/llvm.mk:540: scratch/llvm-3.9.1/build_Release/build-compiled] Error 2
make: *** [Makefile:85: julia-deps] Error 2

The configurations are:
host-triplet: x86_64-apple-darwin16.7.0
shell: /bin/sh
compiler: gcc
compiler flags: -g -O2
linker: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld (gnu? no)
version: libtool (GNU libtool) 2.4.6
automake: automake (GNU automake) 1.15
autoconf: autoconf (GNU Autoconf) 2.69

I have installed awk, cmake, curl, gcc, gpatch, m4, make, perl, pkg-config, and python with homebrew.
Please help!

Also, I found a similar post from a bit ago that has been closed but not resolved: #20739