Executable size - RH7.x versus Fedora
Using Ajunta IDE, my C++ app produces a 5 meg executable under Redhat 7.2.
After copying the identical project to Fedora, the built executable is over 8 megs. Further, the 5 meg executable built on 7.2 wont run on Fedora, complaining about missing .so libraries. Seems like Fedora is statically linking more libs than 7.2. How can i fix this? Am kinda new at Linux, so the answer is likely simple. Thnx in advance. |
I solved my problem, but dont know why...
I assume Fedora's libraries are larger accounting for the size diff. But, to get the smaller executable to run on Fedora, I had to manually copy and rename libcom_err.so.2 to libcom_err.so.3, the latter being absent in Fedora, but present in 7.2. Why should I have had to do this? |
All times are GMT -5. The time now is 12:04 PM. |