Tue Oct 4 14:25:02 2016 UTC ()
Hack around ppc64.


(christos)
diff -r1.7 -r1.8 src/external/public-domain/sqlite/lib/Makefile

cvs diff -r1.7 -r1.8 src/external/public-domain/sqlite/lib/Makefile (expand / switch to context diff)
--- src/external/public-domain/sqlite/lib/Makefile 2016/07/06 08:01:30 1.7
+++ src/external/public-domain/sqlite/lib/Makefile 2016/10/04 14:25:02 1.8
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2016/07/06 08:01:30 mrg Exp $
+# $NetBSD: Makefile,v 1.8 2016/10/04 14:25:02 christos Exp $
 
 LIB=		sqlite3
 INCS=		sqlite3.h sqlite3ext.h
@@ -20,6 +20,11 @@
 
 .if ${MACHINE_CPU} == "m68k"
 CWARNFLAGS+=	-Wa,--warn
+.endif
+
+.if ${MACHINE_ARCH} == "powerpc64"
+# call to `' lacks nop, can't restore toc; recompile with -fPIC
+COPTS.sqlite3.c += -O0
 .endif
 
 .include <bsd.lib.mk>