Skip to content

Commit

Permalink
Merge pull request #171 from r-spatial/pi-install
Browse files Browse the repository at this point in the history
Link against -latomic on Raspberry Pi
  • Loading branch information
paleolimbot authored May 16, 2022
2 parents 5c3f27f + d67b743 commit 2b45d39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ else
PKG_CFLAGS="$PKG_CFLAGS -DIS_BIG_ENDIAN"
fi

# From apache/arrow/r/configure:
# If on Raspberry Pi, need to manually link against latomic
# See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358 for similar example
if grep raspbian /etc/os-release >/dev/null 2>&1; then
PKG_LIBS="-latomic $PKG_LIBS"
fi

echo "Using PKG_LIBS=$PKG_LIBS"
echo "Using PKG_CFLAGS=$PKG_CFLAGS"

Expand Down

0 comments on commit 2b45d39

Please sign in to comment.