* configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
authorGerald Pfeifer <gerald@gcc.gnu.org>
Sun, 16 Jan 2011 19:38:04 +0000 (19:38 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Sun, 16 Jan 2011 19:38:04 +0000 (19:38 +0000)
From-SVN: r168858

libgomp/ChangeLog
libgomp/configure.tgt

index 7f35ad61db9ae7210848dafb219a48b960608d80..2e9be60c1ab0a7303a629ae3caa832f879b9c59a 100644 (file)
@@ -1,3 +1,7 @@
+2011-01-16  Gerald Pfeifer
+
+       * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
+
 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
 
        PR fortran/46874
index 4a564452cefdc9d5df628e7d57d80d9e726655c3..429c8e6bca29deec55121509d4c401ba4e45d5a2 100644 (file)
@@ -124,6 +124,11 @@ case "${target}" in
        config_path="bsd posix"
        ;;
 
+  *-*-freebsd*)
+       # Need to link with -lpthread so libgomp.so is self-contained.
+       XLDFLAGS="${XLDFLAGS} -lpthread"
+       ;;
+
   mips-sgi-irix6*)
        # Need to link with -lpthread so libgomp.so is self-contained.
        XLDFLAGS="${XLDFLAGS} -lpthread"