to many libraries linked.



The sponsor of peless to debian complains that peless
links to too many libraries that it does not strictly
speaking need:

g++  -g -O2   -o peless -L/usr/lib peless-peless.o peless-gmore.o
+peless-search.o -pthread -L/opt/gnome/lib -lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6
+-lgtk-x11-2.0 -lpangomm-1.4 -lcairomm-1.0 -lgdk-x11-2.0 -latk-1.0
+-lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lfreetype -lz
+-lfontconfig -lexpat -lglitz -lpng12 -lXrender -lX11 -lpthread -lXau -lXdmcp
+-lgconfmm-2.6 -lglibmm-2.4 -lgconf-2 -lgobject-2.0 -lsigc-2.0 -lORBit-2 -lm
+-lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0    -lboost_filesystem -lboost_regex


gtkmm2.4 gconfmm-2.6 and boost* I have specified directly.

the others are a result of these
configure.ac:
PKG_CHECK_MODULES(DEPS, gtkmm-2.4 >= 2.4.0 gconfmm-2.6 >= 2.6.0)
and this line from Makefile.am
peless_LDADD=$(DEPS_LIBS)  $(BOOST_FILESYSTEM_LIB) $(BOOST_REGEX_LIB)
Specificyly $(DEPS_LIBS).

16 of the libraries are said to be not really needed.

It is suggested that peless add --as-needed to LDFLAGS.

Is this a good idea? The PKG_CHECK_MODULES is the recommended
way to build a program using gtkmm and gconfmm.

Suggestions Welcome.


-- 
Paul Elliott                       1(512)837-1096
pelliott io com                    PMB 181, 11900 Metric Blvd Suite J
http://www.io.com/~pelliott/pme/   Austin TX 78758-3117

Attachment: pgp8DmSIwvxtD.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]