From 79f9997e9055724f1cf76cfffa487014a7a09483 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 19 Feb 2026 18:38:07 +0000
Subject: [PATCH 1/2] Initial plan
From 4f5249b2e05e56409fbcdfc8ae7eddd051dbbcb6 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 19 Feb 2026 18:46:58 +0000
Subject: [PATCH 2/2] Use lib prefix by default on Unix for NativeAOT;
introduce UseNativeLibPrefix opt-out
Co-authored-by: sbomer <787361+sbomer@users.noreply.github.com>
---
eng/testing/tests.android.targets | 1 -
.../BuildIntegration/Microsoft.NETCore.Native.targets | 3 ++-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/eng/testing/tests.android.targets b/eng/testing/tests.android.targets
index 2624ccc1c02e8e..7b20463c9e9330 100644
--- a/eng/testing/tests.android.targets
+++ b/eng/testing/tests.android.targets
@@ -26,7 +26,6 @@
true
- <_UseNativeLibPrefix>true
<_SuppressNativeLibEventSourceWarning>true
diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
index e758f681c3c0ee..d3a40486db65b2 100644
--- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
+++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
@@ -29,6 +29,7 @@ The .NET Foundation licenses this file to you under the MIT license.
true
false
$(TreatWarningsAsErrors)
+ true
<_IsiOSLikePlatform Condition="'$(_targetOS)' == 'maccatalyst' or $(_targetOS.StartsWith('ios')) or $(_targetOS.StartsWith('tvos'))">true
<_IsApplePlatform Condition="'$(_targetOS)' == 'osx' or '$(_IsiOSLikePlatform)' == 'true'">true
@@ -71,7 +72,7 @@ The .NET Foundation licenses this file to you under the MIT license.
.lib
.a
- lib
+ lib
.dSYM
.pdb