Skip to content

Commit f6254d2

Browse files
committed
fix: manual linker args
Same as StaticICULibs and StaticSslLibs in Microsoft.NETCore.Native.Unix.targets
1 parent e6a6754 commit f6254d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sentry/Platforms/Native/buildTransitive/Sentry.Native.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<NativeLibrary Include="$(MSBuildThisFileDirectory)..\sentry-native\$(RuntimeIdentifier)\libsentry-native.a" />
3939
<!-- See: https://github.com/dotnet/runtime/issues/97414 -->
4040
<NativeSystemLibrary Include="curl" />
41-
<NativeSystemLibrary Include="libunwind.a" Condition="'$(RuntimeIdentifier)' == 'linux-musl-x64'" />
41+
<LinkerArg Include="-Wl,-Bstatic -lunwind -Wl,-Bdynamic" Condition="'$(RuntimeIdentifier)' == 'linux-musl-x64'" />
4242
</ItemGroup>
4343

4444
<ItemGroup Condition="'$(FrameworkSupportsNative)' == 'true' and ('$(RuntimeIdentifier)' == 'osx-x64' or '$(RuntimeIdentifier)' == 'osx-arm64')">

0 commit comments

Comments
 (0)