Skip to content

Commit

Permalink
use common config instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Frago9876543210 committed Jul 25, 2021
1 parent 1ab653e commit 875b2c6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
TARGET="aarch64-linux-musl"
OUTPUT="/opt/cross/"

# Fix for possible inconsistencies of CPU instructions set
CFLAGS="-march=x86-64"
CXXFLAGS="$CFLAGS"

cp config.mak.dist config.mak

echo "OUTPUT = $OUTPUT" >> config.mak
# Fix for possible inconsistencies of CPU instructions set
echo "GCC_CONFIG += -march=x86-64" >> config.mak
echo "COMMON_CONFIG += CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\"" >> config.mak

# Compile TARGET and install
make
Expand Down

0 comments on commit 875b2c6

Please sign in to comment.