Don't pass --as-needed to unbreak upower(1).

This commit is contained in:
ajacoutot 2012-01-02 15:13:19 +00:00
parent 1fb9d20fcd
commit 8ca4dae4c2
2 changed files with 22 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.13 2011/10/16 06:29:30 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.14 2012/01/02 15:13:19 ajacoutot Exp $
ONLY_FOR_ARCHS =${APM_ARCHS}
@ -9,6 +9,8 @@ EXTRACT_SUFX = .tar.xz
CATEGORIES = sysutils
SHARED_LIBS += upower-glib 0.0 # 1.1
REVISION = 0
HOMEPAGE = http://upower.freedesktop.org/
MASTER_SITES = ${HOMEPAGE}/releases/

View File

@ -1,16 +1,29 @@
$OpenBSD: patch-configure,v 1.6 2011/10/16 06:29:30 ajacoutot Exp $
$OpenBSD: patch-configure,v 1.7 2012/01/02 15:13:19 ajacoutot Exp $
Disable --as-needed to prevent undefined symbol on pthread_*
Fix DATADIRNAME: see LOCALBASE/share/aclocal/glib-gettext.m4.
--- configure.orig Wed Sep 28 17:04:39 2011
+++ configure Sun Oct 16 08:20:41 2011
@@ -13967,6 +13967,9 @@ else
+++ configure Mon Jan 2 16:09:11 2012
@@ -13417,10 +13417,6 @@ else
fi
;;
-if test "x$GCC" = "xyes"; then
- LDFLAGS="-Wl,--as-needed $LDFLAGS"
-fi
-
# i18n support
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
@@ -13966,6 +13962,9 @@ else
DATADIRNAME=lib
fi
+ ;;
+ *-*-openbsd*)
+ DATADIRNAME=share
+ ;;
;;
*)
DATADIRNAME=lib
;;