--- libgomp/configure.tgt.orig 2015-03-13 10:57:07 UTC +++ libgomp/configure.tgt @@ -140,6 +140,11 @@ case "${target}" in config_path="bsd darwin posix" ;; + *-*-bsdsunix*) + # Need to link with -lpthread so libgomp.so is self-contained. + XLDFLAGS="${XLDFLAGS} -lpthread" + ;; + *-*-freebsd*) # Need to link with -lpthread so libgomp.so is self-contained. XLDFLAGS="${XLDFLAGS} -lpthread"