Skip to content

Commit 83c1755

Browse files
Fix ignored --elf32-strip-target-libs
Options --[no-]elf32-strip-target-libs were ignored - instead behaviour was to always strip libraries. That was happening because variable containing option value hasn't been exported to invoked scripts. Also change check from `!= no` to `= yes` for uniformity with other similar checks. Signed-off-by: Anton Kolesov <[email protected]>
1 parent 43af8c3 commit 83c1755

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build-all.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
# [--native-gdb | --no-native-gdb]
5454
# [--system-expat | --no-system-expat]
5555
# [--elf32-gcc-stage1 | --no-elf32-gcc-stage1]
56+
# [--elf32-strip-target-libs | --no-elf32-strip-target-libs]
5657
# [--optsize-newlib | --no-optsize-newlib]
5758
# [--optsize-libstdc++ | --no-optsize-libstdc++]
5859

@@ -901,6 +902,7 @@ export SYSTEM_EXPAT
901902
export DO_ELF32_GCC_STAGE1
902903
export BUILD_OPTSIZE_NEWLIB
903904
export BUILD_OPTSIZE_LIBSTDCXX
905+
export DO_STRIP_TARGET_LIBRARIES
904906
export IS_CROSS_COMPILING
905907

906908
# Set up a logfile

build-elf32.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ ${SED} -i "${ARC_GNU}"/gdb/gdb/configure.tgt \
429429
cp "$ARC_GNU/toolchain/extras/arc-tcf-gcc" "$INSTALLDIR/bin/${arch}-elf32-tcf-gcc"
430430

431431
# Strip files from debug symbols
432-
if [ "$DO_STRIP_TARGET_LIBRARIES" != no ]; then
432+
if [ "$DO_STRIP_TARGET_LIBRARIES" = yes ]; then
433433

434434
if [ $IS_CROSS_COMPILING = yes ]; then
435435
# Use cross tools in the PATH

0 commit comments

Comments
 (0)