Apache OpenOffice (AOO) Bugzilla – Issue 16323
Unecessary link libraries in crashrep
Last modified: 2003-07-03 10:30:19 UTC
The libraries listed on the link command line are not necessary to build crashrep on my system - all I need are those listed by pkg-config --libs gtk+-2.0. Can the makefile be changed to not pull in these libraries where it is not necessary? My guess is that the libs are either needed on non-gcc systems or statically linked gtk setups. But I can't test the static linking because of issue 15843. I attach a patch that removes the libs for GCC systems and also simplifies the linker flags by making use of the $(STATIC) and $(DYNAMIC) macros. Tested on Linux, Debian unstable.
Created attachment 7330 [details] Simplify crashrep linking
set target and prio.
At least on my ReadHat 7.2 the patch does not work because the additional library references are mandatory. This applies to static and dynamic linking. It's not a defect if on some machine the link line can be shorter.
Using $(DYNAMIC) and $(STATIC) though is a good idea. Will befixed with issue 15843.