package/sconeserver: fix static link with openssl
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 30 May 2015 14:19:11 +0000 (16:19 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 31 May 2015 08:36:35 +0000 (10:36 +0200)
commit5f08ba100e97f677424971e30d8643d885c92c72
tree6c0a84fae375bb522bf5a2df8abd3e09827d6ab2
parent80db0345bdbd7f1c83d6e169b0bc3fef2f0c481f
package/sconeserver: fix static link with openssl

When linking statically, the order of libraries on the linker command
line is important, and sconeserver got it wrong.

Also, sconeserver does not use pkg-config, so it misses the private
libs of -lcrypto, which is linking with -lz.

Fix that:
  - add a patch to configure.in to fix the order of libraries;
  - forcibly pass -lz when linking statically with openssl.

Note: we were already reconfiguring sconeserver, because it comes from
the github repository.

Fixes:
    http://autobuild.buildroot.org/results/403/403eac974ecdaacdb66b8241fbdcf19ec5e07480

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/sconeserver/0001-fix-ssl-libs-ordering.patch [new file with mode: 0644]
package/sconeserver/sconeserver.mk