forked from BobSteagall/gcc-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-gcc.sh
More file actions
executable file
·34 lines (31 loc) · 832 Bytes
/
Copy pathmake-gcc.sh
File metadata and controls
executable file
·34 lines (31 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
##
## Script: make-gcc.sh
##
## This second-level script compiles GCC and any supporting sources.
##
##- Make sure we're in the same directory as this script.
##
export TOP_DIR="$(cd "$(dirname "$0")" && pwd)"
cd $TOP_DIR
##- Get the GCC-related variables for this build.
##
source ./gcc-build-vars.sh
##- Make gcc itself.
##
cd $GCC_BLD_DIR
$GCC_MAKE $GCC_BUILD_JOBS_ARG
##- Make binutils on Linux.
##
if [ "$GCC_PLATFORM" == "Linux" ] && [ "$GCC_USE_CUSTOM_BINUTILS" == "YES" ]
then
cd $BU_BLD_DIR
$GCC_MAKE
echo ""
echo ""
echo "======================================================================"
echo "======================================================================"
echo "======================================================================"
echo ""
echo ""
fi