dotnet / jitutils

MIT License
146 stars 59 forks source link

See if libcoredistools.so can be built with fewer dependencies #314

Closed echesakov closed 2 years ago

echesakov commented 3 years ago

As noted in https://github.com/dotnet/runtime/pull/47470#issuecomment-772736060

libcoredistools.so depends on the following set of dependencies

        linux-vdso.so.1 (0x00007ffcca1ed000)                                                                                                                  
        libz.so.1 => /lib64/libz.so.1 (0x00007f7826b0b000)                                                                                                    
        librt.so.1 => /lib64/librt.so.1 (0x00007f7826b00000)                                                                                                  
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f7826af9000)                                                                                                  
        libtinfo.so.5 => not found                                                                                                                            
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7826ad7000)                                                                                        
        libm.so.6 => /lib64/libm.so.6 (0x00007f7826991000)                                                                                                    
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f78267a7000)                                                                                          
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f782678c000)                                                                                            
        libc.so.6 => /lib64/libc.so.6 (0x00007f78265c1000)                                                                                                    
        /lib64/ld-linux-x86-64.so.2 (0x00007f7827507000)      

and requires installation of ncurses-compat-libs package on Fedora to be able to run.

This work item is to investigate whether such dependency can be dropped.

Presumably, the fix could be as simple as setting some CMake variable in order to prevent linking against the corresponding library.

сс @dotnet/jit-contrib @omajid

echesakov commented 2 years ago

This was addressed in https://github.com/dotnet/jitutils/pull/348