LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Executable size - RH7.x versus Fedora (https://www.linuxquestions.org/questions/red-hat-31/executable-size-rh7-x-versus-fedora-297603/)

Dave31836 03-04-2005 09:57 AM

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.

Dave31836 03-04-2005 02:46 PM

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.