openbsd-ports/audio/libcanberra/patches/patch-acinclude_m4
ajacoutot d53a51f041 MULTIPACKAGE this port into:
-main, the main libcanberra library
    -gtk, libcanberra-gtk (gtk+2)
    -gtk3 libcanberra-gtk3 (gtk+3)

This is needed for the ongoing GNOME3 work without forcing a global move
to gtk+3. The -gtk subpackage may disappear in the future when nothing
uses it.

This move will prevent the login/logout sounds to work in
gnome-session-2.X but it is a necessary evil to move forward.

EDONOTCARE/agreed by several
2011-04-13 06:47:22 +00:00

24 lines
965 B
Plaintext

$OpenBSD: patch-acinclude_m4,v 1.1 2011/04/13 06:47:22 ajacoutot Exp $
--- acinclude.m4.orig Tue Apr 12 16:41:01 2011
+++ acinclude.m4 Tue Apr 12 16:41:20 2011
@@ -282,8 +282,8 @@ if test "x$acx_pthread_ok" = xyes; then
# about -lpthread
#
if test x"$ok" = xno; then
- AC_MSG_CHECKING([whether -lpthread fixes that])
- LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
+ AC_MSG_CHECKING([whether -pthread fixes that])
+ LIBS="-pthread $PTHREAD_LIBS $save_LIBS"
AC_TRY_LINK([#include <pthread.h>],
[pthread_t th; pthread_join(th, 0);
pthread_attr_init(0); pthread_cleanup_push(0, 0);
@@ -292,7 +292,7 @@ if test "x$acx_pthread_ok" = xyes; then
if test "x$ok" = xyes; then
AC_MSG_RESULT([yes])
- PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
+ PTHREAD_LIBS="-pthread $PTHREAD_LIBS"
else
AC_MSG_RESULT([no])
fi