--- src/gdb/solib.c.orig Sat Jul 13 12:13:51 2002 +++ src/gdb/solib.c Sat Jul 13 12:15:23 2002 @@ -65,7 +65,11 @@ /* If non-empty, this is a search path for loading non-absolute shared library symbol files. This takes precedence over the environment variables PATH and LD_LIBRARY_PATH. */ -static char *solib_search_path = NULL; +#ifdef CONFIG_SOLIB_SEARCH_PATH + static char *solib_search_path = CONFIG_SOLIB_SEARCH_PATH; +#else + static char *solib_search_path = NULL; +#endif /* --- src/gdb/acconfig.h.orig Sat Jul 13 12:53:20 2002 +++ src/gdb/acconfig.h Sat Jul 13 12:54:46 2002 @@ -176,3 +176,7 @@ /* nativefile */ #undef GDB_NM_FILE + +/* Define when building cross gcc for particular cross-development environment */ +#undef CONFIG_SOLIB_SEARCH_PATH + --- src/gdb/config.in.orig Thu Apr 11 11:32:51 2002 +++ src/gdb/config.in Sat Jul 13 12:55:42 2002 @@ -186,6 +189,9 @@ /* nativefile */ #undef GDB_NM_FILE + +/* Define when building cross gcc for particular cross-development environment */ +#undef CONFIG_SOLIB_SEARCH_PATH /* Define if you have the __argz_count function. */ #undef HAVE___ARGZ_COUNT --- src/gdb/configure.in.orig Sat Jul 13 12:47:13 2002 +++ src/gdb/configure.in Sat Jul 13 12:55:33 2002 @@ -932,6 +932,13 @@ ],) +AC_ARG_WITH(solib-search-path, [ --with-solib-search-path=DIR:DIR:DIR... Directories to search for shared libraries on host], with_solib_seach_path=${withval}) + +if test x"${with_solib_seach_path}" != x ; then + AC_DEFINE_UNQUOTED(CONFIG_SOLIB_SEARCH_PATH,"$with_solib_seach_path") +fi +AC_SUBST(CONFIG_SOLIB_SEARCH_PATH) + AC_ARG_ENABLE(gdbtk, [ --enable-gdbtk Enable GDBTK GUI front end], [case "${enableval}" in