Correctly pick up pthread_mutex_init(3).

Fix path to the default gconf configuration.
This commit is contained in:
ajacoutot 2012-04-30 14:54:09 +00:00
parent 3a01eba84b
commit ace31731e2
2 changed files with 21 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.46 2012/03/29 14:57:00 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.47 2012/04/30 14:54:09 ajacoutot Exp $
SHARED_ONLY = Yes
@ -69,6 +69,11 @@ CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += --disable-doxygen \
--disable-ofx
MODGNOME_CPPFLAGS = -I${X11BASE}/include
# configure checks for pthread_mutex_init(3)
MODGNOME_LDFLAGS = -pthread
# see patch-src_core-utils_gnc-path_c
CFLAGS += -DGCONFDIR='\"/var/db\"'
FAKE_FLAGS = sysconfdir=${PREFIX}/share/examples/

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_core-utils_gnc-path_c,v 1.1 2012/04/30 14:54:09 ajacoutot Exp $
OpenBSD uses /var/db/gconf instead of /etc/gconf.
--- src/core-utils/gnc-path.c.orig Mon Apr 30 14:03:37 2012
+++ src/core-utils/gnc-path.c Mon Apr 30 14:05:22 2012
@@ -187,7 +187,7 @@ gchar *gnc_path_get_stdreportsdir()
* @returns A newly allocated string. */
gchar *gnc_path_get_gconfdir(gboolean force_slashes)
{
- gchar *sysconfdir = gnc_gbr_find_etc_dir (SYSCONFDIR);
+ gchar *sysconfdir = gnc_gbr_find_etc_dir (GCONFDIR);
gchar *separator = G_DIR_SEPARATOR_S;
gchar *result;