summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorobache <obache>2010-06-17 13:45:36 +0000
committerobache <obache>2010-06-17 13:45:36 +0000
commit82742338c142d25dc5c39134057b21048a63e6d0 (patch)
tree818da3e901556507dfebc508f92c2f12b4a6ee98 /databases
parent4f5ff49ff9c2e1d456673ad466c09e32b26f8081 (diff)
downloadpkgsrc-82742338c142d25dc5c39134057b21048a63e6d0.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}