Skip to content

Commit

Permalink
Make 64 bit Linux native lib the default.
Browse files Browse the repository at this point in the history
Since 64bit OS's are more common we should
make the 64 bit version of the native ibrary
the default.

This helps when running under .net Core. But
it will also allow us to easliy remove the
32 bit version in the future.
  • Loading branch information
dellis1972 committed Jun 1, 2020
1 parent d321af1 commit 34dc213
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Xamarin.LibZipSharp.targets
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<Link>%(FileName)%(Extension)</Link>
</_LibZipNativeLibs>
<_LibZipNativeLibs Include="$(MSBuildThisFileDirectory)..\runtimes\linux-x64\native\libzip.so">
<Link>lib64\%(FileName)%(Extension)</Link>
<Link>%(FileName)%(Extension)</Link>
</_LibZipNativeLibs>
<_LibZipNativeLibs Include="$(MSBuildThisFileDirectory)..\runtimes\linux-x86\native\libzip.so">
<Link>%(FileName)%(Extension)</Link>
<Link>lib32\%(FileName)%(Extension)</Link>
</_LibZipNativeLibs>
<None Include="@(_LibZipNativeLibs)" Condition="'$(LibZipSharpBundleAllNativeLibraries)' == 'True'">
<Link>%(Link)</Link>
Expand Down
4 changes: 2 additions & 2 deletions libZipSharp.dll.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<dllmap dll="libzip" os="osx" target="libzip.dylib"/>
<dllmap dll="libzip" os="linux" cpu="x86" target="libzip.so"/>
<dllmap dll="libzip" os="linux" cpu="x86-64" target="lib64/libzip.so"/>
<dllmap dll="libzip" os="linux" cpu="x86" target="lib32/libzip.so"/>
<dllmap dll="libzip" os="linux" cpu="x86-64" target="libzip.so"/>
</configuration>

0 comments on commit 34dc213

Please sign in to comment.