- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.2k
Link static libstdc++ with libicuc in NativeAOT #79501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue Details
 $ uname -a
Linux 4405bca6c481 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 Linux
$ dotnet publish -p:PublishAot=true -o dist
$ file dist/gh-79498
dist/gh-79498: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, BuildID[sha1]=8b2876d810f668a4713963382c5d31f635426b6f, with debug_info, not strippedFixes #79498 
 | 
a3ae425    to
    9dde554      
    Compare
  
    9dde554    to
    26c7c02      
    Compare
  
            
          
                src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | @smhmhmd @Beau-Gosse-dev Does this change look good? | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you!
| @jkotas Also, progress on full-static builds for Alpine is awesome. | 
| All known failures according to the build analysis | 
dotnet/runtime#79501 is landed, so workaround is not needed
libicucdepends onlibstdc++. Statically linking the ICU requires stdc++ to be linked. Also, to produce 100% static executable-Wl,-Bdynamicis unnecessary.Fixes #79498