提交 1c4e4e4f 编写于 作者: R Richard Levitte

Add -lz to the ld flags when the user has chosen to link in zlib *statically*.

Notified by Doug Kaufman <dkaufman@rahul.net>
上级 3f6db7f5
...@@ -1091,7 +1091,7 @@ if ($zlib) ...@@ -1091,7 +1091,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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册