sngrep: use pkg-config to discover OpenSSL to fix static linking
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 4 Mar 2017 14:15:58 +0000 (15:15 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 5 Mar 2017 20:36:39 +0000 (21:36 +0100)
commitbfd273d83ad02b96841d36a05916a12130b4f739
tree0553ef4786a4cce0b97d53bb2ec2d9bd98852a98
parenta0121c7beb7bcdb001ddac61f8a06ed36792ef80
sngrep: use pkg-config to discover OpenSSL to fix static linking

Building sngrep with OpenSSL support in static linking configurations
currently fails due to undefined symbols in the OpenSSL library. It's
the usual problem with using AC_CHECK_LIB() to discover libraries
instead of the pkg-config based PKG_CHECK_MODULES().

Therefore, this commit introduces a patch that switches to using
pkg-config to discover OpenSSL. A preliminary patch is needed, without
which appending to LIBS/CFLAGS doesn't work. Both patches have been
submitted upstream.

Fixes:

  http://autobuild.buildroot.net/results/911143de823b2c749ac0a59dfa06adb6ddd3de50/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/sngrep/0001-src-Makefile.am-don-t-use-VPATH.patch [new file with mode: 0644]
package/sngrep/0002-configure.ac-switch-to-pkg-config-to-find-openssl.patch [new file with mode: 0644]
package/sngrep/sngrep.mk