summaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorgerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-16 19:38:04 +0000
committergerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-16 19:38:04 +0000
commite49efc8c7cb0049d60b2774263d9429b129beb58 (patch)
tree4ef1c1c80b5f61b8b992f3aa36b147c566688190 /libgomp
parent4a20136eb8a130c12ad47d81171d9fcc252423c2 (diff)
downloadgcc-e49efc8c7cb0049d60b2774263d9429b129beb58.tar.gz
* configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168858 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog4
-rw-r--r--libgomp/configure.tgt5
2 files changed, 9 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 7f35ad61db9..2e9be60c1ab 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -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
diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt
index 4a564452cef..429c8e6bca2 100644
--- a/libgomp/configure.tgt
+++ b/libgomp/configure.tgt
@@ -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"