The change to src/contrib/gcc/config/freebsd-spec.h 1.16 is not complete. gcc built against 1.16 will not link code in 5.2 if -pthread is specified as -lpthread does not exist. Fix: Add an additional __FreeBSD_version test #if __FreeBSD_version > 502000 #define FBSD_LIB_SPEC " \ %{!shared: \ %{!pg: %{pthread:-lpthread} -lc} \ %{pg: %{pthread:-lpthread_p} -lc_p} \ }" #elif __FreeBSD_version >= 500016 #define FBSD_LIB_SPEC " \ %{!shared: \ %{!pg: %{pthread:-lc_r} -lc} \ %{pg: %{pthread:-lc_r_p} -lc_p} \ }" #else How-To-Repeat: by inspection
State Changed From-To: open->closed libpthread exists in FreeBSD 5.x where x > 2, so this bug is not relevant anymore.