runtime compiled with -g ?

I have noticed that Motif runtime package is quite big,
and in fact Xm library is almost 10MB, instead of 1.8MB
It looks that it has been compiled with -g flag and not stripped.
Was this done on purpose?
If not, can we expect an update?
If yes (some people think normal users shold debug their code and
carry a 5x overhead in binary size) are we allowed to make our own RPMs
with proper compile flags?


Mark

Mark's picture

runtime compiled with -g ?

Hi,

I would like to check with the fellow that actually built the RPM`s to better understand his reasoning. (He is on a much needed holiday this week). In the meantime, please feel free to set the flags to suit your needs and strip the binaries! That is one of the reasons we released the SRPMS!

Regards,

Mark

Mark


tnomura

tnomura's picture

runtime compiled with -g ?

You should remove the following lines from host.def and
execute "make World" and "make install" again.

#define DebugLibXm YES
#define DebugLibMrm YES
#define DebugLibUil YES

--
Takaaki Nomura(amadeus@yk.rim.or.jp)


Anonymous

Anonymous's picture

runtime compiled with -g ?

Hello

To many people with slow internet connection it makes A LOT of difference
if runtime is 1MB or 2.4 MB (as it is now).
The installed hard disk difference of 3MB vs. 13 MB also matters, but not
so dramatically. I do not know, however, if the garbage is then discarded
by the smart Linux shared library loader, or it also eats up 8 MB more RAM,
which would also make a difference to many people.

In any case, I would appreciate very much if you did an update of run time
packages, so I could post a link from my web page instead of making my
own RPMs.

Thanks,

Dusan


Mark

Mark's picture

runtime compiled with -g ?

Intel 2_ICS runtimes did grow over 1_ICS. Assuming that this is just a strip and the inclusion of debugging info, we`ll do another update, probably next week.

Did anybody notice the dramatic decrease in size of the Developer kit for some of the non-Intel platforms?

Mark


Anonymous

Anonymous's picture

runtime compiled with -g ?

Takaaki ,
I tried setting ...

#define DebugLibXm NO
#define DebugLibMrm NO
#define DebugLibUil NO

..and while that eliminated the building of the *_d.a libs it
still resulted in the static libs being built with -g. I noticed
that in XFree86 4.0 the linux.cf file has Debuggable_Libraries
set to YES. This seems absent from XFree86 3.3.5. I am
wondering if that entry in linux.cf is forcing the use of -g.
Jack


tnomura

tnomura's picture

runtime compiled with -g ?

You said
>I noticed
>that in XFree86 4.0 the linux.cf file has Debuggable_Libraries
>set to YES. This seems absent from XFree86 3.3.5. I am
>wondering if that entry in linux.cf is forcing the use of -g.

Yes. I have XFree86 4.0 sources and know the problem. Unless
I set DebuggableLibraries to NO in linux.cf, the libraries of libX11.*,
libXt.* and so on are built with -g option. It may cause the problem
also with Open Motif.