Skip to content

libtool: unrecognized option -static when building #2341

Description

@brycekahle

Fresh clone and first attempt at building io.js, After running ./configure and make, I encounter this error:

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C out BUILDTYPE=Release V=1
  rm -f /Users/bwkahle/git/io.js/out/Release/libgtest.a && ./gyp-mac-tool filter-libtool libtool  -static -o /Users/bwkahle/git/io.js/out/Release/libgtest.a /Users/bwkahle/git/io.js/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o /Users/bwkahle/git/io.js/out/Release/obj.target/gtest/deps/gtest/src/gtest-filepath.o /Users/bwkahle/git/io.js/out/Release/obj.target/gtest/deps/gtest/src/gtest-port.o /Users/bwkahle/git/io.js/out/Release/obj.target/gtest/deps/gtest/src/gtest-printers.o /Users/bwkahle/git/io.js/out/Release/obj.target/gtest/deps/gtest/src/gtest-test-part.o /Users/bwkahle/git/io.js/out/Release/obj.target/gtest/deps/gtest/src/gtest-typed-test.o /Users/bwkahle/git/io.js/out/Release/obj.target/gtest/deps/gtest/src/gtest.o /Users/bwkahle/git/io.js/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/bwkahle/git/io.js/out/Release/libgtest.a] Error 1
make: *** [iojs] Error 2

Here is version information for my build environment:

gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
python --version
Python 2.7.10

Any help is much appreciated. Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to Node.js builds or CI infrastructure.macosIssues and PRs related to the macOS platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions