Special cjdns compile settings for BBB

This commit is contained in:
Bob Mottram 2015-01-11 12:05:58 +00:00
parent d64a9624bc
commit 75b9239127
1 changed files with 8 additions and 2 deletions

View File

@ -619,6 +619,12 @@ function install_cjdns {
get_cjdns_port
get_cjdns_password
# special compile settings for running ./do on the Beaglebone Black
if [[ $INSTALLING_ON_BBB == "yes" ]]; then
CFLAGS="-O2 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -ffast-math -mfloat-abi=hard -marm -Wno-error=maybe-uninitialized"
export LDFLAGS="$CFLAGS"
fi
if [ ! -d /etc/cjdns ]; then
git clone https://github.com/cjdelisle/cjdns.git /etc/cjdns
cd /etc/cjdns