parallel-runtimes / lomp

Little OpenMP Library
Apache License 2.0
153 stars 17 forks source link

CMake does not detect libatomic.so #45

Closed mjklemm closed 2 years ago

mjklemm commented 2 years ago

Describe the bug The build system does not correctly detect the link-line flags for libatomic.so, which is needed for a compilation with GCC.

To Reproduce Please provide steps to reproduce the behavior:

  1. Configure LOMP using CMake.
  2. Compile LOMP.
  3. Do ldd src/libomp.so
  4. The libatomic.so library is missing from the library dependencies (also the GCC linker shows errors to atomics)

Expected behavior Correctly link libatomic.so.

Screenshots n/a

Desktop (please complete the following information):