summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-06-17 13:45:36 +0000
committerobache <obache@pkgsrc.org>2010-06-17 13:45:36 +0000
commit29c4a78a87d1e894e4f76bca5b81c453028c2907 (patch)
tree818da3e901556507dfebc508f92c2f12b4a6ee98 /databases
parenta93748f30f660d01aac58b964d43a3192d71f301 (diff)
downloadpkgsrc-29c4a78a87d1e894e4f76bca5b81c453028c2907.tar.gz
Add workaround of build failure on MacOS X 10.4, lack of gethostuuid(2).
PR#43429
Diffstat (limited to 'databases')
-rw-r--r--databases/sqlite3/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile
index 1c7b9d9ba3c..63e57b655f6 100644
--- a/databases/sqlite3/Makefile
+++ b/databases/sqlite3/Makefile
@@ -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 @@ PKGCONFIG_OVERRIDE+= sqlite3.pc.in
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}