Node-4.2.1 is installed in source code under mac, prompting libtool: unrecognized option `-static’

  node.js, question
 gcc version:
 Apple LLVM version 7.0.0 (clang-700.0.72)
 Target: x86_64-apple-darwin14.4.0
 Thread model: posix
 libtool version:libtool (GNU libtool) 2.4.2

Compiled to half reported the following error

/Applications/ -C out BUILDTYPE=Release V=1
  rm -f /Users/zruibin/Desktop/node-4.2.1/out/Release/libgtest.a && ./gyp-mac-tool filter-libtool libtool  -static -o /Users/zruibin/Desktop/node-4.2.1/out/Release/libgtest.a /Users/zruibin/Desktop/node-4.2.1/out/Release/ /Users/zruibin/Desktop/node-4.2.1/out/Release/ /Users/zruibin/Desktop/node-4.2.1/out/Release/ /Users/zruibin/Desktop/node-4.2.1/out/Release/ /Users/zruibin/Desktop/node-4.2.1/out/Release/ /Users/zruibin/Desktop/node-4.2.1/out/Release/ /Users/zruibin/Desktop/node-4.2.1/out/Release/ /Users/zruibin/Desktop/node-4.2.1/out/Release/
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
make[1]: *** [/Users/zruibin/Desktop/node-4.2.1/out/Release/libgtest.a] Error 1
make: *** [node] Error 2

I installed libtool with homebrew. did I install it again with the source code after uninstalling it again, or did I encounter the same problem?
Has anyone met? How to solve it?

Only the libtool that comes with the mac has the parameter -static. You run brew unlink libtool and try again.