package/aircrack-ng: fix static build
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 16 Nov 2014 15:15:10 +0000 (16:15 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 16 Nov 2014 21:43:35 +0000 (22:43 +0100)
commitd26d6e63e02dce6323fb886b85dc4ffe669eaab6
treece225a1cc046b3363b6cce6cb532bf0bf316deb5
parentf0bd293ffd227908e1d09d61e08486d5259b5cfb
package/aircrack-ng: fix static build

Two fixes in one:

  - openssl's libcrypto needs -lz, but because aircrack-ng does not use
    pkg-config, it misses this dependency. The proper fix would be to
    use pkg-config, like is done for pcre with patch
    0001-Makefile-use-pkg-config-to-find-libpcre-it-s-more-cros.patch
    but adding -lz is much easier.

  - sqlite needs -lpthread, so -lpthread must be added _after_ -lsqlite,
    but we currently add it before. So, force -lpthread after -lsqlite
    when we are doing a static build.

Fixes:
    http://autobuild.buildroot.net/results/1ea/1ea877851e9d2aeeaf9d320bef12321ec2925b5b/
    http://autobuild.buildroot.net/results/cdf/cdf0203fc99d5f7e41e508f6d9edb78a0f0ea732/

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/aircrack-ng/aircrack-ng.mk