koreader/koreader-base — pull request #190 by thotypous (2014-06-29 00:34:07+00:00)
Title: Transform output libs into order-only prerequisites

When strip is called from the Makefile, it is run over the files in alphabetic order. This is currently causing libzcmq to fail build on Kindle (and probably also Kobo) targets because the build system will try to build it (and thus patch its source code) again after verifying libzmq (on which it depends) has a more recent date.

Nothing would happen if `make -C $(KOR_BASE)` was not done in two different places in koreader's Makefile (luajit and `all` targets), but the build system should anyway be somewhat resilient to be called multiple times.

Perhaps the simpler way to solve this is by using [order-only prerequisites](https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html) like in the present patch.