Skip to content

Commit

Permalink
Remove hints for finding libatomic (#1036)
Browse files Browse the repository at this point in the history
The hints gave lib64 also for 32-bit platforms and preferred the 64-bit
library also on 32-bit platforms (Debian Buster's clang installs 64-bit
libraries and then fails to link).
  • Loading branch information
sjoelund committed Jun 13, 2021
1 parent c48e610 commit 1bf17f4
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions config.cmake/FindGccAtomic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,7 @@

# I'm also putting "atomic.so.1" because at least FC19 and Ubuntu's repo don't create
# "libatomic.so" symlink. They only have libatomic.so.1.0.0 and libatomic.so.1 symlink. No idea why.
FIND_LIBRARY(GCCLIBATOMIC_LIBRARY NAMES atomic atomic.so.1 libatomic.so.1
HINTS
$ENV{HOME}/local/lib64
$ENV{HOME}/local/lib
/usr/local/lib64
/usr/local/lib
/opt/local/lib64
/opt/local/lib
/usr/lib64
/usr/lib
/lib64
/lib
)
FIND_LIBRARY(GCCLIBATOMIC_LIBRARY NAMES atomic atomic.so.1 libatomic.so.1)

IF (GCCLIBATOMIC_LIBRARY)
SET(GCCLIBATOMIC_FOUND TRUE)
Expand Down

0 comments on commit 1bf17f4

Please sign in to comment.