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

About static object initialization in Operator Factory #1

Open
xuzhenqi opened this issue Nov 13, 2016 · 1 comment
Open

About static object initialization in Operator Factory #1

xuzhenqi opened this issue Nov 13, 2016 · 1 comment

Comments

@xuzhenqi
Copy link
Owner

Static object initialization is not compiled into binary && shared library.

@xuzhenqi
Copy link
Owner Author

Solution:

  1. Compile all submodule into static library.
  2. When linking using option: -Wl,--whole-archive [lib0] [lib1] [...] -Wl,--no-whole-archive.

It doesn't work if compile all submodule into shared library, don't know why.

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