bugThe FreeType Project - Bugs: bug #25814, pkg-config promotes already...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #25814: pkg-config promotes already fulfilled library dependency

Submitter:  None
Submitted:  Tue 10 Mar 2009 07:30:23 PM UTC
   
 
Severity:  3 - Normal Item Group:  Incorrect behaviour
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.3.9

Thu 12 Mar 2009 08:11:22 AM UTC, comment #3: 

Thanks.  I've adjusted the CVS accordingly.

Werner LEMBERG <wl>
Group administrator
Thu 12 Mar 2009 07:56:57 AM UTC, comment #2: 

Just I've checked that Mac OS X linker does not
require the frameworks listed in @FT2_EXTRA_LIBS@,
when it links FT2 client objects (ftdump) with
shared library libfreetype.6.dylib. I've tested
that on Mac OS X 10.1 (lazy binding is not supported)
and 10.5 (lazy binding is supported).

Thus, @FT2_EXTRA_LIBS@ is essential only for
static linking (with libfreetype.a).

suzuki toshiya <mpsuzuki>
Group administrator
Wed 11 Mar 2009 07:08:38 AM UTC, comment #1: 

Applied, thanks.

Suzuki-san, am I right that @FT2_EXTRA_LIBS@ are needed
for both static and dynamic linking?

Werner LEMBERG <wl>
Group administrator
Tue 10 Mar 2009 07:30:23 PM UTC, original submission:  

In /usr/lib/pkgconfig/freetype2.pc is the line
  Libs: -L${libdir} -lfreetype -lz
The freetype library is correct here, but the dependency to zlib seems to be wrong for the shared version of the library. I would say that it is better to change it to:

- Libs: -L${libdir} -lfreetype -lz
+ Libs: -L${libdir} -lfreetype
+ Libs.private: -L${libdir} -lfreetype -lz

This will give the right dependencies for the static version when you call
 pkg-config --static --libs freetype2
and for the shared version
 pkg-config --libs freetype2

Those changes will hopefully remove maaaaany unused dependencies in graphical programs.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #17640:  nozlib-pkgconfig.patch added by None (472B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mpsuzuki (Posted a comment)
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by wl
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-03-11 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.3.9
        Carbon-Copy- Added mpsuzuki
    2009-03-10 None Attached File- Added nozlib-pkgconfig.patch, #17640

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code