Skip to content
This repository
tree: a098b44f4c
Fetching contributors…

Cannot retrieve contributors at this time

file 76 lines (68 sloc) 2.127 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
Index: libffi/ChangeLog.libffi
===================================================================
--- libffi.orig/ChangeLog.libffi
+++ libffi/ChangeLog.libffi
@@ -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: libffi/configure
===================================================================
--- libffi.orig/configure
+++ libffi/configure
@@ -12151,14 +12151,10 @@ case "$host" in
  TARGET=ARM; TARGETDIR=arm
  ;;
 
- amd64-*-freebsd*)
+ amd64-*-freebsd* | amd64-*-openbsd*)
  TARGET=X86_64; TARGETDIR=x86
    ;;
 
- amd64-*-freebsd*)
- TARGET=X86_64; TARGETDIR=x86
- ;;
-
   avr32*-*-*)
  TARGET=AVR32; TARGETDIR=avr32
  ;;
Index: libffi/configure.ac
===================================================================
--- libffi.orig/configure.ac
+++ libffi/configure.ac
@@ -51,14 +51,10 @@ case "$host" in
  TARGET=ARM; TARGETDIR=arm
  ;;
 
- amd64-*-freebsd*)
+ amd64-*-freebsd* | amd64-*-openbsd*)
  TARGET=X86_64; TARGETDIR=x86
    ;;
 
- amd64-*-freebsd*)
- TARGET=X86_64; TARGETDIR=x86
- ;;
-
   avr32*-*-*)
  TARGET=AVR32; TARGETDIR=avr32
  ;;
Index: libffi/testsuite/lib/libffi-dg.exp
===================================================================
--- libffi.orig/testsuite/lib/libffi-dg.exp
+++ libffi/testsuite/lib/libffi-dg.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2003, 2005, 2008 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005, 2008, 2009 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
@@ -197,6 +197,10 @@ proc libffi_target_compile { source dest
  lappend options "libs= -shared-libgcc"
     }
 
+ if { [string match "*-*-openbsd*" $target_triplet] } {
+ lappend options "libs= -lpthread"
+ }
+
     lappend options "libs= -lffi"
 
     verbose "options: $options"
Something went wrong with that request. Please try again.