Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cctest target build failed if configured with '--enable-static' #17991

Closed
liqyan opened this issue Jan 5, 2018 · 0 comments
Closed

cctest target build failed if configured with '--enable-static' #17991

liqyan opened this issue Jan 5, 2018 · 0 comments

Comments

@liqyan
Copy link
Contributor

liqyan commented Jan 5, 2018

  • Version: master
  • Platform: linux
  • Subsystem: build

the cctest target build will fail if configured with --enable-static


./configure --enable-static
make

There're some function multiple definition errors such as:


out/Release/obj.target/node/src/node_crypto.o: In function `node::crypto::RandomBytesWork(uv_work_s*)':
node_crypto.cc:(.text+0x60): multiple definition of `node::crypto::RandomBytesWork(uv_work_s*)'
out/Release/obj.target/node/src/node_crypto.o:node_crypto.cc:(.text+0x60): first defined here

It's caused by repetition object files in cctest target 'libraries' and libnode.a.
cctest picks some object files from node target which is libnode.a actually if configured with '--enable-static' and add them to 'libraries'. Both 'libraries' and libnode.a are passed to linker, then errors occurred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant