https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67098
Bug ID: 67098 Summary: Documentation --with-stage1-ldflags does not mention default -static-libstdc++ -static-libgcc Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- https://gcc.gnu.org/install/configure.html: ... --with-stage1-ldflags=flags This option may be used to set linker flags to be used when linking stage 1 of GCC. These are also used when linking GCC if configured with --disable-bootstrap. By default no special flags are used. ... But in configure we have: ... # Linker flags to use for stage1 or when not bootstrapping. # Check whether --with-stage1-ldflags was given. if test "${with_stage1_ldflags+set}" = set; then : withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then stage1_ldflags= else stage1_ldflags=$withval fi else stage1_ldflags= # In stage 1, default to linking libstdc++ and libgcc statically with GCC # if supported. But if the user explicitly specified the libraries to use, # trust that they are doing what they want. if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then stage1_ldflags="-static-libstdc++ -static-libgcc" fi fi ... So the doc should be something like: ... --with-stage1-ldflags=flags This option may be used to set linker flags to be used when linking stage 1 of GCC. These are also used when linking GCC if configured with --disable-bootstrap. If neither –with-stage1-libs nor –with-host-libstdcxx is set to a value, then the default is ‘-static-libstdc++ -static-libgcc’, if supported. ...