Author: rhys Date: Thu Jan 30 13:52:32 2014 New Revision: 1562826 URL: http://svn.apache.org/r1562826 Log: LOGCXX-424: liblog4cxx.pc.in should reflect dependency on apr-1, apr-1-util
Changing from Requires to Requires.private on reflection and re-reading the pkg-config materials. In particular, the discussion of overlinking. Currently produces, on my system, the following: # Compilation brings in APR installation at include time $ pkg-config --cflags ./liblog4cxx.pc -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/h2/rhys/Stow/log4cxx-0.10.1/include -I/usr/include/apr-1 # Dynamic linking brings in only a dynamic library, avoiding overlinking $ pkg-config --libs ./liblog4cxx.pc -L/h2/rhys/Stow/log4cxx-0.10.1/lib -llog4cxx # Static linking brings in APR and all its dependencies at link time $ pkg-config --libs --static ./liblog4cxx.pc -L/h2/rhys/Stow/log4cxx-0.10.1/lib -llog4cxx -laprutil-1 -lldap -llber -lexpat -ldb-4.7 -lapr-1 -lpthread Modified: incubator/log4cxx/trunk/liblog4cxx.pc.in Modified: incubator/log4cxx/trunk/liblog4cxx.pc.in URL: http://svn.apache.org/viewvc/incubator/log4cxx/trunk/liblog4cxx.pc.in?rev=1562826&r1=1562825&r2=1562826&view=diff ============================================================================== --- incubator/log4cxx/trunk/liblog4cxx.pc.in (original) +++ incubator/log4cxx/trunk/liblog4cxx.pc.in Thu Jan 30 13:52:32 2014 @@ -22,5 +22,5 @@ Description: log4cxx C++ logging framewo Version: @VERSION@ Libs: -L${libdir} -llog4cxx Cflags: -I${includedir} -Requires: apr-1 apr-util-1 +Requires.private: apr-1 apr-util-1