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

Linking SDSL into a project #455

Open
leonwind opened this issue Jun 2, 2023 · 0 comments · May be fixed by #456
Open

Linking SDSL into a project #455

leonwind opened this issue Jun 2, 2023 · 0 comments · May be fixed by #456

Comments

@leonwind
Copy link

leonwind commented Jun 2, 2023

Hey,

I had trouble linking the SDSL library to one of my problems and got the following error message:

can not be used when making a shared object; recompile with -fPIC

I fixed it by changing the run cmake command in install.sh (here) to the following line with the additional -DCMAKE_POSITION_INDEPENDENT_CODE=ON flag:

cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX="${SDSL_INSTALL_PREFIX}" .. # run cmake
@leonwind leonwind linked a pull request Jun 2, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant