]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add openbsd support.
authorAndreas Tobler <a.tobler@schweiz.org>
Fri, 1 Jan 2010 12:32:24 +0000 (12:32 +0000)
committerAnthony Green <green@gcc.gnu.org>
Fri, 1 Jan 2010 12:32:24 +0000 (12:32 +0000)
From-SVN: r155549

libffi/ChangeLog
libffi/configure
libffi/configure.ac
libffi/testsuite/lib/libffi-dg.exp

index d8412aa066a7dd25c469ca57d52415c3fc4e3f54..0834d035cd4326c77fec70511039074ab06d7778 100644 (file)
@@ -1,3 +1,10 @@
+2009-12-26  Andreas Tobler  <a.tobler@schweiz.org>
+
+       * configure.ac: Add amd64-*-openbsd*.
+       * configure: Rebuilt.
+       * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
+       openbsd programs with -lpthread.
+
 2009-12-26  Anthony Green  <green@redhat.com>
 
        * testsuite/libffi.call/cls_double_va.c,
index b849fe32c1c16195e2cf30241f1cc4e3b7e397ec..5ab81bd4183ea56d5dfff682cd1ab801af659dc7 100755 (executable)
@@ -11328,7 +11328,7 @@ case "$host" in
        TARGET=ARM; TARGETDIR=arm
        ;;
 
-  amd64-*-freebsd*)
+  amd64-*-freebsd* | amd64-*-openbsd*)
        TARGET=X86_64; TARGETDIR=x86
        ;;
 
index a3988395bcce9b4f5eb6b5503640f6f03ffed874..b663076c11330e2bfc3759ab51971fa9304da4bb 100644 (file)
@@ -51,7 +51,7 @@ case "$host" in
        TARGET=ARM; TARGETDIR=arm
        ;;
 
-  amd64-*-freebsd*)
+  amd64-*-freebsd* | amd64-*-openbsd*)
        TARGET=X86_64; TARGETDIR=x86
        ;;
 
index 8db38c286a833a24e6ebe62888e2aa9b258131aa..bd5a7c84f48ec35e70652ad1935d3d6d562916dc 100644 (file)
@@ -1,4 +1,4 @@
-#   Copyright (C) 2003, 2005, 2009 Free Software Foundation, Inc.
+#   Copyright (C) 2003, 2005, 2008, 2009, 2010 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -203,6 +203,10 @@ proc libffi_target_compile { source dest type options } {
        lappend options "libs= -shared-libgcc"
     }
 
+    if { [string match "*-*-openbsd*" $target_triplet] } {
+       lappend options "libs= -lpthread"
+    }
+
     lappend options "libs= -lffi"
 
     verbose "options: $options"