Skip to content

Commit

Permalink
Update sqlite-jdbc macOS compilation to use `JavaNativeFoundation…
Browse files Browse the repository at this point in the history
….framework` (#98)
  • Loading branch information
05nelsonm authored Dec 2, 2023
1 parent 2462b90 commit c0d5b9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file modified external/libs/sqlite-jdbc-3.43.2.2.jar
Binary file not shown.
8 changes: 4 additions & 4 deletions external/patches/0011-Use-build-env-where-possible.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 853488f3e225c4af17b7814122e76f7f53ceeacd Mon Sep 17 00:00:00 2001
From 8e52e8b570da6b50a6b3ba9582d124d51d6bd859 Mon Sep 17 00:00:00 2001
From: Matthew Nelson <[email protected]>
Date: Fri, 1 Dec 2023 12:49:06 -0500
Subject: [PATCH 11/11] Use build-env where possible
Expand Down Expand Up @@ -87,7 +87,7 @@ index a052a06..f497d3d 100644
# deprecated
mac32: $(SQLITE_UNPACKED) jni-header
diff --git a/Makefile.common b/Makefile.common
index 9863d9a..346dc86 100644
index 9863d9a..82ecb74 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -128,29 +128,29 @@ Linux-armv7_LIBNAME := libsqlitejdbc.so
Expand Down Expand Up @@ -141,7 +141,7 @@ index 9863d9a..346dc86 100644
-Mac-x86_64_CCFLAGS := -I$(MAC_SDK)/System/Library/Frameworks/JavaVM.framework/Headers -Ilib/inc_mac -Os -fPIC -mmacosx-version-min=10.7 -fvisibility=hidden -Wno-implicit-function-declaration -msse4.2 -maes
+Mac-x86_64_CC := $(CROSS_PREFIX)clang
+Mac-x86_64_STRIP := $(CROSS_PREFIX)strip -x
+Mac-x86_64_CCFLAGS := -I$(PATH_SDK)/System/Library/Frameworks/JavaVM.framework/Headers -Ilib/inc_mac -Os -fPIC -fvisibility=hidden -Wno-implicit-function-declaration -msse4.2 -maes
+Mac-x86_64_CCFLAGS := -I$(PATH_SDK)/System/Library/Frameworks/JavaNativeFoundation.framework/Headers -Ilib/inc_mac -Os -fPIC -fvisibility=hidden -Wno-implicit-function-declaration -msse4.2 -maes
Mac-x86_64_LINKFLAGS := -dynamiclib -framework Security
Mac-x86_64_LIBNAME := libsqlitejdbc.dylib
Mac-x86_64_SQLITE_FLAGS :=
Expand All @@ -152,7 +152,7 @@ index 9863d9a..346dc86 100644
Mac-aarch64_STRIP := $(CROSS_PREFIX)strip -x
-MAC_SDK := /usr/osxcross/SDK/MacOSX11.3.sdk
-Mac-aarch64_CCFLAGS := -I$(MAC_SDK)/System/Library/Frameworks/JavaVM.framework/Headers -Ilib/inc_mac -Os -fPIC -mmacosx-version-min=10.9 -fvisibility=hidden -Wno-implicit-function-declaration
+Mac-aarch64_CCFLAGS := -I$(PATH_SDK)/System/Library/Frameworks/JavaVM.framework/Headers -Ilib/inc_mac -Os -fPIC -fvisibility=hidden -Wno-implicit-function-declaration
+Mac-aarch64_CCFLAGS := -I$(PATH_SDK)/System/Library/Frameworks/JavaNativeFoundation.framework/Headers -Ilib/inc_mac -Os -fPIC -fvisibility=hidden -Wno-implicit-function-declaration
Mac-aarch64_LINKFLAGS := -dynamiclib -framework Security
Mac-aarch64_LIBNAME := libsqlitejdbc.dylib
Mac-aarch64_SQLITE_FLAGS :=
Expand Down

0 comments on commit c0d5b9a

Please sign in to comment.