Using `::getpwuid` prevents static linking
o-sdn-o opened this issue · comments
Dmitry Sapozhnikov commented
[1/2] Building CXX object CMakeFiles/vtm.dir/src/vtm.cpp.o
[2/2] Linking CXX executable vtm
/usr/bin/ld: CMakeFiles/vtm.dir/src/vtm.cpp.o: in function `netxs::os::env::user[abi:cxx11]()':
vtm.cpp:(.text+0x32ea2): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking