pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/sqlite3 Add workaround of build failure on M...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cc2bda3cd45b
branches:  trunk
changeset: 576774:cc2bda3cd45b
user:      obache <obache%pkgsrc.org@localhost>
date:      Thu Jun 17 13:45:36 2010 +0000

description:
Add workaround of build failure on MacOS X 10.4, lack of gethostuuid(2).
PR#43429

diffstat:

 databases/sqlite3/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 70288e7a778f -r cc2bda3cd45b databases/sqlite3/Makefile
--- a/databases/sqlite3/Makefile        Thu Jun 17 09:26:16 2010 +0000
+++ b/databases/sqlite3/Makefile        Thu Jun 17 13:45:36 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2010/04/01 12:01:53 tnn Exp $
+# $NetBSD: Makefile,v 1.28 2010/06/17 13:45:36 obache Exp $
 
 DISTNAME=      sqlite-amalgamation-3.6.23.1
 PKGNAME=       ${DISTNAME:S/sqlite-amalgamation/sqlite3/}
@@ -23,6 +23,13 @@
 INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
 CONFIGURE_ARGS+=       --with-readline-inc= --enable-threadsafe
 
+.include "../../mk/bsd.prefs.mk"
+
+# Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
+.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
+CFLAGS+=               -DSQLITE_ENABLE_LOCKING_STYLE=0
+.endif
+
 # Uses dlopen and friends but doesn't use -ldl on Linux.
 # See http://www.sqlite.org/cvstrac/tktview?tn=3555
 LIBS+=                 ${BUILDLINK_LDADD.dl}



Home | Main Index | Thread Index | Old Index