-
Notifications
You must be signed in to change notification settings - Fork 33
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
Remove pic flag from cmake file. #736
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems like the right choice.
I believe that the problem is that the
My personal opinion is that you should be building a shared library as it minimizes link times for downstream projects. But that's just my opinion. |
263f11f
to
adb0299
Compare
|
Thanks for the advice on how to fix this.
I personally like the fact that the the library is compiled into the executable, since it make the executable self contained and even allows the executable to be moved, but I can see that shorter linking times may also be nice and maybe be more useful in practice. I would suggest just fixing this now, and move the static vs dynamic library discussion into a separate issue and potentially a separate pull request. |
Yes, these are independent questions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks correct to me now, and it also seems to work.
The -fPIC flag should be automatically set by cmake, so there is no need to specify it manually. @bangerth @tjhei