File tree 2 files changed +7
-8
lines changed
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -116,4 +116,3 @@ tar -xzf /opt/lib/libxml2-2.14.3.tar.gz -C /tmp && cd /tmp/libxml2-2.14.3
116
116
./autogen.sh --prefix=" $PREFIX " --disable-shared --enable-static --without-python --without-iconv --host=" $CROSS_COMPILE "
117
117
make -j" $( nproc) "
118
118
make install
119
-
Original file line number Diff line number Diff line change 2
2
3
3
# Check if the CROSS_COMPILE variable is set
4
4
if [ -z " $CROSS_COMPILE " ]; then
5
- echo " Error: CROSS_COMPILE is not set. Please specify the toolchain prefix (e.g., arm-linux-gnueabihf-)."
6
- exit 1
5
+ echo " Error: CROSS_COMPILE is not set. Please specify the toolchain prefix (e.g., arm-linux-gnueabihf-)."
6
+ exit 1
7
7
fi
8
8
9
9
# Detect if the toolchain is osxcross
10
10
if [[ " $CROSS_COMPILE " == * " apple-darwin" * ]]; then
11
- # Set osxcross-specific tools
12
- export CC=" o64-clang"
13
- export CXX=" o64-clang++"
11
+ # Set osxcross-specific tools
12
+ export CC=" o64-clang"
13
+ export CXX=" o64-clang++"
14
14
else
15
- export CC=" ${CROSS_COMPILE} -gcc"
16
- export CXX=" ${CROSS_COMPILE} -g++"
15
+ export CC=" ${CROSS_COMPILE} -gcc"
16
+ export CXX=" ${CROSS_COMPILE} -g++"
17
17
fi
18
18
19
19
# Set default compilation flags
You can’t perform that action at this time.
0 commit comments