compile with min macos version

This commit is contained in:
Aditya Kulkarni
2019-02-01 14:05:42 -08:00
parent f2e4ad6b6e
commit 01fdb1ec49

View File

@@ -21,7 +21,11 @@ fi
cd libsodium-1.0.16 cd libsodium-1.0.16
bash configure bash configure
make clean make clean
make -j$(nproc) if [[ "$OSTYPE" == "darwin"* ]]; then
make CFLAGS="-mmacosx-version-min=10.11" CPPFLAGS="-mmacosx-version-min=10.11"
else
make
fi
cd .. cd ..
# copy the library to the parents's res/ folder # copy the library to the parents's res/ folder