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
commitb94cb2195e1c2a496bb1184632b0c3b3eca1a5a5 (patch)
tree818da3e901556507dfebc508f92c2f12b4a6ee98 /databases
parentd9537e3b8e54700262fb4c921b97f0094552b769 (diff)
downloadpkgsrc-b94cb2195e1c2a496bb1184632b0c3b3eca1a5a5.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}