-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgeoclient-build.patch
More file actions
27 lines (25 loc) · 1.2 KB
/
geoclient-build.patch
File metadata and controls
27 lines (25 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/build.gradle b/build.gradle
index 6285bf3..3ff03b2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -20,7 +20,9 @@ allprojects {
version = rootProject.version
repositories {
+ maven { url "http://maven.geotoolkit.org/" }
jcenter()
+ mavenLocal()
mavenCentral()
}
diff --git a/geoclient-native/build.gradle b/geoclient-native/build.gradle
index a53dde0..757a8ae 100644
--- a/geoclient-native/build.gradle
+++ b/geoclient-native/build.gradle
@@ -64,7 +64,7 @@ model {
cCompiler.define "DLL_IMPORT"
linker.args "-L${gsLibraryPath}", "-lm", "-lNYCgeo", "-lgeo", "-ledequiv", "-lapequiv", "-lsan", "-lsnd", "-lstExcpt", "-lStdLast", "-lStdUniv", "-lstEnder", "-lstretch", "-lthined"
} else if (targetPlatform.operatingSystem.linux) {
- linker.args "-L${gsLibraryPath}", "-lc", "-lm", "-lgeo", "-ledequiv", "-lapequiv", "-lsan", "-lsnd", "-lstExcpt", "-lStdLast", "-lStdUniv", "-lstEnder", "-lstretch", "-lthined"
+ linker.args "-Wl,--no-as-needed", "-L${gsLibraryPath}", "-lc", "-lm", "-lgeo", "-ledequiv", "-lapequiv", "-lsan", "-lsnd", "-lstExcpt", "-lStdLast", "-lStdUniv", "-lstEnder", "-lstretch", "-lthined"
}
}
}