File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ apt install -y --no-install-recommends texinfo
46
46
# Get the latest fixed version
47
47
git clone --depth=1 --single-branch --branch newlib-4.5.0 https://sourceware.org/git/newlib-cygwin.git " ${SRC} "
48
48
49
+ # Apply patch to fix "undefined symbol: __aeabi_unwind_cpp_pr0 referenced by libc_a-setjmp.o" issue
50
+ PATCH_NAME=" cantunwind.patch"
51
+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
52
+ cp " ${SCRIPT_DIR} /${PATCH_NAME} " " ${SRC} "
53
+ cd " ${SRC} "
54
+ git apply " ${PATCH_NAME} "
55
+ cd ..
49
56
50
57
# Build configuration
51
58
mkdir -p " ${BUILD} " " ${INSTALL} "
@@ -79,6 +86,9 @@ CFLAGS_FOR_TARGET="-ffunction-sections -fdata-sections -fshort-wchar -DPREFER_SI
79
86
make " -j$( nproc) "
80
87
make install
81
88
89
+ # Stripping debug symbols
90
+ arm-none-eabi-strip --strip-debug " ${INSTALL} /arm-none-eabi/lib/libc.a"
91
+ arm-none-eabi-strip --strip-debug " ${INSTALL} /arm-none-eabi/lib/libm.a"
82
92
83
93
# Copy back
84
94
mkdir -p " $OUTPUT_DIR "
You can’t perform that action at this time.
0 commit comments