The --strip-unneeded option of the GNU strip command strips everythng from the target libs. Therefore one can't use nm on the installed libs to lookup any symbols. Options: --keep-section-symbols --keep-file-symbols remove most space out of shared libs, but retain these tables, for lookup purposes, however libs still show unstripped using the file command. --- gcc-releases-gcc-10.5.0/libstdc++-v3/configure.orig 2023-07-07 09:08:39.000000000 +0200 +++ gcc-releases-gcc-10.5.0/libstdc++-v3/configure 2026-09-05 17:10:20.336611500 +0200 @@ -12300,7 +12300,7 @@ $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" + test -z "$striplib" && striplib="$STRIP --keep-section-symbols --keep-file-symbols" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else --- gcc-releases-gcc-10.5.0/libatomic/configure.orig 2023-07-07 09:08:39.000000000 +0200 +++ gcc-releases-gcc-10.5.0/libatomic/configure 2026-09-05 17:13:38.452171600 +0200 @@ -11628,7 +11628,7 @@ $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" + test -z "$striplib" && striplib="$STRIP --keep-section-symbols --keep-file-symbols" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else --- gcc-releases-gcc-10.5.0/libgfortran/configure.orig 2023-07-07 09:08:39.000000000 +0200 +++ gcc-releases-gcc-10.5.0/libgfortran/configure 2026-09-05 17:12:48.143919200 +0200 @@ -12960,7 +12960,7 @@ $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" + test -z "$striplib" && striplib="$STRIP --keep-section-symbols --keep-file-symbols" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else --- gcc-releases-gcc-10.5.0/libgo/configure.orig 2023-07-07 09:08:39.000000000 +0200 +++ gcc-releases-gcc-10.5.0/libgo/configure 2026-09-05 17:12:54.456047700 +0200 @@ -11729,7 +11729,7 @@ $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" + test -z "$striplib" && striplib="$STRIP --keep-section-symbols --keep-file-symbols" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else --- gcc-releases-gcc-10.5.0/libgomp/configure.orig 2023-07-07 09:08:39.000000000 +0200 +++ gcc-releases-gcc-10.5.0/libgomp/configure 2026-09-05 17:12:59.596190200 +0200 @@ -11673,7 +11673,7 @@ $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" + test -z "$striplib" && striplib="$STRIP --keep-section-symbols --keep-file-symbols" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else --- gcc-releases-gcc-10.5.0/libitm/configure.orig 2023-07-07 09:08:39.000000000 +0200 +++ gcc-releases-gcc-10.5.0/libitm/configure 2026-09-05 17:13:05.100110700 +0200 @@ -12305,7 +12305,7 @@ $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" + test -z "$striplib" && striplib="$STRIP --keep-section-symbols --keep-file-symbols" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else --- gcc-releases-gcc-10.5.0/libobjc/configure.orig 2023-07-07 09:08:39.000000000 +0200 +++ gcc-releases-gcc-10.5.0/libobjc/configure 2026-09-05 17:13:11.323866400 +0200 @@ -11016,7 +11016,7 @@ $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" + test -z "$striplib" && striplib="$STRIP --keep-section-symbols --keep-file-symbols" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else --- gcc-releases-gcc-10.5.0/libquadmath/configure.orig 2023-07-07 09:08:39.000000000 +0200 +++ gcc-releases-gcc-10.5.0/libquadmath/configure 2026-09-05 17:13:17.759378300 +0200 @@ -11055,7 +11055,7 @@ $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" + test -z "$striplib" && striplib="$STRIP --keep-section-symbols --keep-file-symbols" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else --- gcc-releases-gcc-10.5.0/libsanitizer/configure.orig 2023-07-07 09:08:39.000000000 +0200 +++ gcc-releases-gcc-10.5.0/libsanitizer/configure 2026-09-05 17:13:22.947776600 +0200 @@ -12602,7 +12602,7 @@ $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" + test -z "$striplib" && striplib="$STRIP --keep-section-symbols --keep-file-symbols" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else --- gcc-releases-gcc-10.5.0/libssp/configure.orig 2023-07-07 09:08:39.000000000 +0200 +++ gcc-releases-gcc-10.5.0/libssp/configure 2026-09-05 17:13:27.738565900 +0200 @@ -11237,7 +11237,7 @@ $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" + test -z "$striplib" && striplib="$STRIP --keep-section-symbols --keep-file-symbols" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else