How to compile ImageMagick with static zlib!

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
diuming
Posts: 22
Joined: 2011-01-16T22:07:22-07:00
Authentication code: 8675308

How to compile ImageMagick with static zlib!

Post by diuming »

Hello guys,

In my OS had a dynamic zlib library at /usr/lib (old version), But I don't want to use system level dynamic zlib.
So, I compiled ImageMagick with a static zlib, but i confuse It, why ImageMagick always use system level dynamic zlib.

My configuration refer to following:

./configure --prefix=/usr/local

in prefix/lib existed static zlib (libz.a)
in prefix/include existed zlib.h and zconf.h
in prefix/share existed config.site file
---------------config.site------------------------------
CC=gcc
CXX=g++
CPPFLAGS='-I/usr/local/include'
LDFLAGS='-L/usr/local/lib'
---------------------------------------------------------

Maybe my config is wrong, Could someone can help me to figure it out.

thanks

Diuming
Post Reply