The toplevel configure.in has

# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
# binutils tools will find libbfd.so.
case "${enable_shared}" in
  no | "") SET_LIB_PATH= ;;
  *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
esac
...
if test -d ${srcdir}/gcc && test x${is_cross_compiler} = xno; then
  case "${enable_shared}" in
    no | "") ;;
    *)
      eval "d=\$$RPATH_ENVVAR"
      if test x"$d" != x; then
        d="$pwd/gcc:$d"
      else
        d="$pwd/gcc"
    fi
    SET_GCC_LIB_PATH="\$(RPATH_ENVVAR)=$d; export \$(RPATH_ENVVAR);"
    ;;
  esac
fi

Makefile.tpl has

# This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
# was used.
SET_LIB_PATH = @SET_LIB_PATH@

This doesn't work when shared libraries enabled by default.

-- 
           Summary: Top level configure doesn't support shared libraries
                    enabled by default
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl at lucon dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17783

Reply via email to