Add -lz to the ld flags when the user has chosen to link in zlib *statically*.
Notified by Doug Kaufman <dkaufman@rahul.net>
This commit is contained in:
parent
ea050a6eb3
commit
08e60fc0ff
@ -1070,7 +1070,7 @@ if ($zlib)
|
|||||||
{
|
{
|
||||||
$cflags = "-DZLIB $cflags";
|
$cflags = "-DZLIB $cflags";
|
||||||
$cflags = "-DZLIB_SHARED $cflags" if $zlib == 2;
|
$cflags = "-DZLIB_SHARED $cflags" if $zlib == 2;
|
||||||
$lflags = "$lflags -lz" if $zlib == 2;
|
$lflags = "$lflags -lz" if $zlib == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
# You will find shlib_mark1 and shlib_mark2 explained in Makefile.org
|
# You will find shlib_mark1 and shlib_mark2 explained in Makefile.org
|
||||||
|
Loading…
x
Reference in New Issue
Block a user