Skip to content

Commit

Permalink
try static linking
Browse files Browse the repository at this point in the history
  • Loading branch information
tiainen committed Nov 9, 2023
1 parent 05b26a7 commit b861577
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ jobs:
name: Build natives libraries
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
# os: [ ubuntu-latest, windows-latest ]
os: [ windows-latest ]
target: [ native ]
include:
- os: ubuntu-latest
target: mac64-signed
- os: ubuntu-latest
target: mac-arm64-signed
# include:
# - os: ubuntu-latest
# target: mac64-signed
# - os: ubuntu-latest
# target: mac-arm64-signed
runs-on: ${{ matrix.os }}
steps:
- name: Make space
Expand Down Expand Up @@ -62,6 +63,11 @@ jobs:
if: runner.os == 'Windows'
run: cp C:\openssl1.1.1\bin\libcrypto.dll src\main\resources\org\sqlite\native\Windows\x86_64\libcrypto.dll

- name: Build OpenSSL
if: runner.os == 'Windows'
shell: bash
run: ls -l C:\openssl1.1.1\lib\

- name: Set platform classifier
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ Windows-x86_SQLITE_FLAGS :=
Windows-x86_64_CC := $(CROSS_PREFIX)gcc
Windows-x86_64_STRIP := $(CROSS_PREFIX)strip
Windows-x86_64_CCFLAGS := -D_JNI_IMPLEMENTATION_ -Ilib/inc_win -IC:/openssl1.1.1/include -Os -msse4.2 -maes
Windows-x86_64_LINKFLAGS := -Wl,--kill-at -shared -static-libgcc -LC:/openssl1.1.1/bin -lcrypto
Windows-x86_64_LINKFLAGS := -Wl,--kill-at -shared -static-libgcc -LC:/openssl1.1.1/lib -l:libcrypto.lib
Windows-x86_64_LIBNAME := sqlitejdbc.dll
Windows-x86_64_SQLITE_FLAGS :=

Expand Down

0 comments on commit b861577

Please sign in to comment.