-
Notifications
You must be signed in to change notification settings - Fork 705
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
fails to link against gtest in shared mode #19
Comments
starius
added a commit
to starius/luahs
that referenced
this issue
May 3, 2016
Thanks for this. As it happens, we've already pushed commit 3dc8bab that solves this issue in a different way, except it is still on the develop branch. We expect to merge this to master quite soon. However we probably should rework our use of |
Commit 3dc8bab is now on master in release 4.2.0 |
starius
added a commit
to LuaAndC/mxe
that referenced
this issue
Jun 5, 2016
Some patches are not needed anymore: * "add Libs.private to fix linking errors" was fixed in intel/hyperscan#18 * "fix linking against gtest in shared mode" and "fix linking errors in shared mode" were fixed in intel/hyperscan#19 * "install .dll to bin/, not to lib/" intel/hyperscan#21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I build hyperscan in shared mode:
It fails to build
bin/unit-hyperscan
because of linking errors:It is caused by the fact that symbols in libgtest.so are local:
It should be
T
instead oft
there.This problem seems to be caused by using
-fvisibility=hidden
compiler option when compilinggtest
.The following patch fixes the problem for me:
You may want to make more precise patch, which disables
-fvisibility=hidden
forgtest
only, because other parts seem to work well with it.The text was updated successfully, but these errors were encountered: