| 1 | |
| 2 | |
| 3 | @@ -64,7 +64,7 @@
|
| 4 |
|
| 5 | jniGccFlags ++= Seq(
|
| 6 | "-std=c99", "-Wundef", "-Wshadow", "-Wcast-align", "-Wstrict-prototypes", "-Wno-unused-variable",
|
| 7 | - "-Wpointer-arith", "-DZSTD_LEGACY_SUPPORT=4", "-DZSTD_MULTITHREAD=1", "-lpthread", "-flto"
|
| 8 | + "-Wpointer-arith", "-DZSTD_LEGACY_SUPPORT=4", "-DZSTD_MULTITHREAD=1", "-flto=auto", "-ffat-lto-objects"
|
| 9 | )
|
| 10 |
|
| 11 | // compilation on Windows with MSYS/gcc needs extra flags in order
|
| 12 | @@ -82,7 +82,7 @@
|
| 13 | else
|
| 14 | // the default is compilation with GCC
|
| 15 | jniGccFlags.value ++ Seq(
|
| 16 | - "-static-libgcc", "-Wl,--version-script=" + PWD + "/libzstd-jni.so.map")
|
| 17 | + "-Wl,--version-script=" + PWD + "/libzstd-jni.so.map")
|
| 18 | )
|
| 19 |
|
| 20 | // Special case the jni platform header on windows (use the one from the repo)
|