openmpi: fix build error for openmpi

This commit is contained in:
Henrik Grimler 2018-09-14 08:02:22 +02:00 committed by Henrik Grimler
parent c6979c6a7e
commit 6eb7e81903
1 changed files with 4 additions and 0 deletions

View File

@ -14,4 +14,8 @@ termux_step_pre_configure () {
# rindex is an obsolete version of strrchr which is not available in Android:
CFLAGS+=" -Drindex=strrchr -Dbcmp=memcmp"
LDFLAGS+=" -llog"
if [ $TERMUX_ARCH == "i686" ]; then
# fails with "undefined reference to __atomic..."
LDFLAGS+=" -latomic"
fi
}