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

  node.js, question
os:10.10.4
 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/Xcode.app/Contents/Developer/usr/bin/make -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/obj.target/gtest/deps/gtest/src/gtest-death-test.o /Users/zruibin/Desktop/node-4.2.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-filepath.o /Users/zruibin/Desktop/node-4.2.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-port.o /Users/zruibin/Desktop/node-4.2.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-printers.o /Users/zruibin/Desktop/node-4.2.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-test-part.o /Users/zruibin/Desktop/node-4.2.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-typed-test.o /Users/zruibin/Desktop/node-4.2.1/out/Release/obj.target/gtest/deps/gtest/src/gtest.o /Users/zruibin/Desktop/node-4.2.1/out/Release/obj.target/gtest/deps/gtest/src/gtest_main.o
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.