Index: gcc-5/src/gcc/config/sol2.h =================================================================== --- gcc-5.orig/src/gcc/config/sol2.h +++ gcc-5/src/gcc/config/sol2.h @@ -142,12 +142,12 @@ along with GCC; see the file COPYING3. #undef LIB_SPEC #define LIB_SPEC \ "%{!symbolic:\ - %{pthreads|pthread:-lpthread} \ - %{p|pg:-ldl} -lc}" + %{pthreads|pthread:} \ + %{p|pg:} -lc}" #ifndef CROSS_DIRECTORY_STRUCTURE #undef MD_EXEC_PREFIX -#define MD_EXEC_PREFIX "/usr/ccs/bin/" +#define MD_EXEC_PREFIX "/usr/bin/" #endif #undef STARTFILE_ARCH_SPEC @@ -174,9 +174,7 @@ along with GCC; see the file COPYING3. #define LINK_ARCH32_SPEC_BASE \ "%{G:-G} \ %{YP,*} \ - %{R*} \ - %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp%R/lib:%R/usr/lib} \ - %{!p:%{!pg:-Y P,%R/lib:%R/usr/lib}}}" + %{R*}" #undef LINK_ARCH32_SPEC #define LINK_ARCH32_SPEC LINK_ARCH32_SPEC_BASE @@ -187,9 +185,7 @@ along with GCC; see the file COPYING3. #define LINK_ARCH64_SPEC_BASE \ "%{G:-G} \ %{YP,*} \ - %{R*} \ - %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp/" ARCH64_SUBDIR ":%R/lib/" ARCH64_SUBDIR ":%R/usr/lib/" ARCH64_SUBDIR "} \ - %{!p:%{!pg:-Y P,%R/lib/" ARCH64_SUBDIR ":%R/usr/lib/" ARCH64_SUBDIR "}}}" + %{R*}" #undef LINK_ARCH64_SPEC #ifndef USE_GLD