12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- $OpenBSD: patch-libgo_configure,v 1.5 2012/04/06 07:50:32 pascal Exp $
- --- libgo/configure.orig Mon Feb 21 05:17:20 2011
- +++ libgo/configure Wed Apr 4 23:09:24 2012
- @@ -644,6 +644,8 @@ LIBGO_IS_LINUX_FALSE
- LIBGO_IS_LINUX_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
- LIBFFIINCS
- @@ -10320,7 +10322,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'
- +
- 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
- @@ -13213,6 +13215,7 @@ fi
-
- is_darwin=no
- is_freebsd=no
- +is_openbsd=no
- is_linux=no
- is_rtems=no
- is_solaris=no
- @@ -13220,6 +13223,7 @@ GOOS=unknown
- case ${host} in
- *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
- *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
- + *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
- *-*-linux*) is_linux=yes; GOOS=linux ;;
- *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
- *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
- @@ -13240,6 +13244,14 @@ else
- LIBGO_IS_FREEBSD_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='#'
- @@ -13706,13 +13718,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. */
-
- @@ -13743,7 +13755,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
-
-
|