File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,13 @@ jniGccFlags := (
82
82
jniGccFlags.value.filterNot(_ == " -fPIC" ) ++
83
83
Seq (" -D_JNI_IMPLEMENTATION_" , " -Wl,--kill-at" ,
84
84
" -static-libgcc" , " -Wl,--version-script=" + PWD + " /libzstd-jni.so.map" )
85
- else if (System .getProperty(" os.name" ).toLowerCase startsWith " mac" )
85
+ else if (System .getProperty(" os.name" ).toLowerCase startsWith " mac" ) {
86
+ // For intel, target the latest version that supported 32bit binaries
87
+ val target = if (System .getProperty(" os.arch" ) == " x86_64" ) Seq (" -mmacosx-version-min=10.14" ) else Seq ()
86
88
// MacOS uses clang that does not support the "-static-libgcc" and version scripts,
87
89
// but visibility can be modified by `-exported_symbols_list`
88
- jniGccFlags.value ++ Seq (" -exported_symbols_list" , PWD + " /libzstd-jni.so.exported" )
89
- else
90
+ jniGccFlags.value ++ Seq (" -exported_symbols_list" , PWD + " /libzstd-jni.so.exported" ) ++ target
91
+ } else
90
92
// the default is compilation with GCC
91
93
jniGccFlags.value ++ Seq (
92
94
" -static-libgcc" , " -Wl,--version-script=" + PWD + " /libzstd-jni.so.map" )
You can’t perform that action at this time.
0 commit comments