I have a C++ program that I compile on a variety of Linux architectures and platforms. Strangely, once compiled the binary is approx 5MB on Ubuntu (32 bit and 64 bit), while its 20MB on Red Hat (32 bit and 64 bit).
This is a C++ Qt5 program in case that matters. Can someone explain why the large size discrepancy? Does Ubuntu ship with Qt libraries that perhaps have to be compiled in with Red Hat?