]> granicus.if.org Git - php/commit
Fix bug #78823: add zlib library to mysqlnd
authorArjen de Korte <build+github@de-korte.org>
Mon, 25 Nov 2019 22:54:49 +0000 (23:54 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 5 Dec 2019 06:24:52 +0000 (07:24 +0100)
commitee4295b4ce421003c2e1d2af98066826deb23319
treed3b1f54943e0b82e8f816888cfe95d66cfb9fe0c
parent3167e591b5dfee43f002b003cd2838c0f04abf71
Fix bug #78823: add zlib library to mysqlnd

The problem is newer binutils will no longer default to --copy-dt-needed-entries but use --no-copy-dt-needed-entries instead. So all libraries needed *must* be provided.

Workarounds (either one works)
1) Add "-Wl,--copy-dt-needed-entries" to LDFLAGS to bring back the old behavior of the linker
2) Add "-lz" to list of libraries to be added

In "ext/mysqlnd/mysqlnd_protocol_frame_codec.c" when the "zlib.h" header is included should also trigger adding '-lz' to the list of libraries.
NEWS
ext/mysqlnd/config9.m4