libpng and proper pkg-config usage to find where zlib header and libraries are located
Brent Goodrick <[email protected]> Sun, 23 Apr 2017 11:01:33 -0700
| Newsgroups | gmane.comp.graphics.png.general |
|---|---|
| Message-ID | <CAJj=8EGXMJ89PDGAkJCHs57iTr3pgvSvF4Fye96sh1rKRxFCjQ@mail.gmail.com> |
Hi, I have some build scripts in my github repo for building various dependencies locally for situations where I cannot alter a system's main configuration to install packages. One of these build scripts builds libpng from the libpng git repo. But, to get it to work, I have to man-handle CPPFLAGS and LDFLAGS variables on the ./configure command line as shown here: https://github.com/bgoodr/build-locally/blob/955653559800c8bb984ec7a0f75036cb6f324ccf/packages/libpng/linux/build.bash#L113 That is a workaround IMO: Since the libpng build generates its own libpng*.pc files, shouldn't it also try to use pkg-config to find the include and library directories produced by zlib which also produces its own zlib.pc file? Thanks, Brent ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot