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

add libatomic if clang and pthreads are used #11

Merged
merged 3 commits into from Aug 25, 2017
Merged

add libatomic if clang and pthreads are used #11

merged 3 commits into from Aug 25, 2017

Conversation

rkaminsk
Copy link
Member

There is a problem building clasp (and clingo) on i686 when compiling with clang. For some reason not just -lpthread but also -latomic has to be added to the linker options. I adjusted clasp's cmake file to add the library. Note that the patch adds the libatomic library unconditionally if the clang together with pthreads is used (and the library is found of course). I tried to add it only if really necessary but this resulted in really ugly code.

@BenKaufmann BenKaufmann merged commit fe3e176 into potassco:dev Aug 25, 2017
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 this pull request may close these issues.

None yet

2 participants