f2b393605c
ok espie@
90 lines
2.8 KiB
Plaintext
90 lines
2.8 KiB
Plaintext
$OpenBSD: patch-libgo_configure,v 1.1.1.1 2012/04/23 15:56:41 pascal Exp $
|
|
--- libgo/configure.orig Sat Mar 10 20:03:09 2012
|
|
+++ libgo/configure Mon Apr 2 17:00:27 2012
|
|
@@ -666,6 +666,8 @@ LIBGO_IS_IRIX_FALSE
|
|
LIBGO_IS_IRIX_TRUE
|
|
LIBGO_IS_FREEBSD_FALSE
|
|
LIBGO_IS_FREEBSD_TRUE
|
|
+LIBGO_IS_OPENBSD_FALSE
|
|
+LIBGO_IS_OPENBSD_TRUE
|
|
LIBGO_IS_DARWIN_FALSE
|
|
LIBGO_IS_DARWIN_TRUE
|
|
go_include
|
|
@@ -10522,7 +10524,7 @@ openbsd*)
|
|
*) need_version=no ;;
|
|
esac
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
+ #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
case $host_os in
|
|
@@ -13441,6 +13443,10 @@ fi
|
|
# architectures don't support it. FIXME: We should set a default
|
|
# based on the host.
|
|
|
|
+case ${host} in
|
|
+powerpc*-*-*) with_libffi_default=no ;;
|
|
+esac
|
|
+
|
|
# Check whether --with-libffi was given.
|
|
if test "${with_libffi+set}" = set; then :
|
|
withval=$with_libffi; :
|
|
@@ -13468,6 +13474,7 @@ go_include="-include"
|
|
|
|
is_darwin=no
|
|
is_freebsd=no
|
|
+is_openbsd=no
|
|
is_irix=no
|
|
is_linux=no
|
|
is_netbsd=no
|
|
@@ -13477,6 +13484,7 @@ GOOS=unknown
|
|
case ${host} in
|
|
*-*-darwin*) is_darwin=yes; GOOS=darwin ;;
|
|
*-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
|
|
+ *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
|
|
*-*-irix6*) is_irix=yes; GOOS=irix ;;
|
|
*-*-linux*) is_linux=yes; GOOS=linux ;;
|
|
*-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
|
|
@@ -13507,6 +13515,14 @@ else
|
|
LIBGO_IS_IRIX_FALSE=
|
|
fi
|
|
|
|
+ if test $is_openbsd = yes; then
|
|
+ LIBGO_IS_OPENBSD_TRUE=
|
|
+ LIBGO_IS_OPENBSD_FALSE='#'
|
|
+else
|
|
+ LIBGO_IS_OPENBSD_TRUE='#'
|
|
+ LIBGO_IS_OPENBSD_FALSE=
|
|
+fi
|
|
+
|
|
if test $is_linux = yes; then
|
|
LIBGO_IS_LINUX_TRUE=
|
|
LIBGO_IS_LINUX_FALSE='#'
|
|
@@ -14085,13 +14101,13 @@ fi
|
|
|
|
|
|
PTHREAD_LIBS=
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
|
|
-$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -pthread" >&5
|
|
+$as_echo_n "checking for pthread_create in -pthread... " >&6; }
|
|
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
-LIBS="-lpthread $LIBS"
|
|
+LIBS="-pthread $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
@@ -14122,7 +14138,7 @@ fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
|
|
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
|
|
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
|
|
- PTHREAD_LIBS=-lpthread
|
|
+ PTHREAD_LIBS=-pthread
|
|
fi
|
|
|
|
|