Re: Building libpng16 from source with zlib v1.2.10

John Bowler <[email protected]>
Newsgroups gmane.comp.graphics.png.general
Message-ID <CAP7U39-N5bHGtk-KSe2bcVR55Yg270m85yYhZk8LiQ8UuoTP+Q@mail.gmail.com>
On Fri, Jan 6, 2017 at 9:20 AM, GLENN PEHRSON <[email protected]> wrote:
> On January 6, 2017 at 11:45 AM Guillaume Rossolini
> <[email protected]> wrote:
>
> Is it like this?
> CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure
> --prefix=/usr/local --with-zlib-prefix=/usr/local --disable-static
>
> Or rather this?
> ./configure 'CPPFLAGS=-I/usr/local/include' 'LDFLAGS=-L/usr/local/lib'
> --prefix=/usr/local --with-zlib-prefix=/usr/local --disable-static
>
> (the latter seemed to work)

*Both* should work and produce idential results, however
--with-zlib-prefix is wrong (it just happens to get ignored) and
--prefix=/usr/local is unnecessary.

You may prefer the first version i.e. setting CPPFLAGS and LDFLAGS in
the environment, because then you can do it just once, i.e.:

CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib
export CPPFLAGS LDFLAGS
./configure --disable-static

-- 
John Bowler <[email protected]>
+1 (541) 450-9885
PO BOX 3151
KERBY OR 97531-3151
USA

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.