Skip to content

The build system seems to have obsolete zlib support #446

@TurtleWilly

Description

@TurtleWilly

When running configure --help it lists an option --without-zlib. This makes me accordingly assume the default is lcms2 to actually require zlib for something. On my system I need to tell any build system exactly where the correct zlib is located. Configure doesn't seem to have an option to specify the zlib location, so I have to manually ramp up the configure variables, something like this:

# Note: --with-zlib=<dir> is entirely a wild guess
./configure \
    --prefix=/usr/local/silo/lcms2/2.16                \
    --disable-static                                   \
    --with-jpeg=/usr/local/silo/jpeg/latest            \
    --with-tiff=/usr/local/silo/tiff/latest            \
    --with-zlib=/usr/local/silo/zlib/latest            \
    CFLAGS='-O3 -I/usr/local/silo/zlib/latest/include' \
    LDFLAGS='-L/usr/local/silo/zlib/latest/lib -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-dead_strip' \
    LIBS='-lz'

Which is obviously some extra typing work. 🥲

But ultimately it seems that extra hassle was for nothing. zlib doesn't seem to be used at all by lcms2? I also grepped for 'zlib.h' and got no hit, except inside the configure script.

If zlib is obsolete, then the respective zlib support should be removed from the configure script. E.g. also package systems like MacPorts still list zlib as dependency: https://github.com/macports/macports-ports/blob/master/graphics/lcms2/Portfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions