openSUSE/libsolv — pull request #22 by akozumpl (2012-12-18 13:35:53+00:00)
Title: build: zlib should come before rpmdb.

On Fedora 17, building with FEDORA=1, ld version 2.22.52.0.1-10.fc17, gcc
version 4.7.0 I get:

../ext/libsolvext.so.0: undefined reference to `gzclose'

and similar ones, all mentioning a zlib function. This is resolved if
'-lz' appears earlier on the gcc command line. I can't find anything in
gcc/ld manual explaining this, it could be a well hidden gcc bug (that the
build started to fail after a seemingly irrelevant commit d5597d3 would
suggested this too) [1].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=888285