fixed signal-cli-native build

* due to different glibc versions, it is not possible to use the
  existing (prebuilt) libsignal_jni.so that get's shipped with the
  signal-cli binary distribution for the signal-cli native image build.
  So in order to make that work (again), we need to use our own
  libsignal_jni.so for the x86_64 build.

see #412
This commit is contained in:
Bernhard B
2023-10-02 19:01:09 +02:00
parent db005cdcc3
commit f18ebde951
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
diff --git a/build.gradle.kts b/build.gradle.kts
index 0d89c075..fda49332 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -43,6 +43,7 @@ dependencies {
implementation(libs.slf4j.jul)
implementation(libs.logback)
implementation(project(":lib"))
+ implementation(files("/tmp/libsignal-client.jar"))
}
configurations {
@@ -51,6 +52,10 @@ configurations {
}
}
+configurations.all {
+ exclude(group = "org.signal", module = "libsignal-client")
+}
+
tasks.withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false