From 3f352433bd517b248c1e65d4f4c92bb85bdc9d98 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 2 Apr 2017 15:09:49 +0200 Subject: [PATCH] netcat-openbsd: Fix linking and use GNU_HASH for symbols Inherit the pkgconfig bbclass so libbsd can be found properly and pass in LDFLAGS to make sure the right link line is being used. --- recipes-support/netcat-openbsd/netcat-openbsd_1.105.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes-support/netcat-openbsd/netcat-openbsd_1.105.bb b/recipes-support/netcat-openbsd/netcat-openbsd_1.105.bb index 12409d4..e27720e 100644 --- a/recipes-support/netcat-openbsd/netcat-openbsd_1.105.bb +++ b/recipes-support/netcat-openbsd/netcat-openbsd_1.105.bb @@ -6,6 +6,8 @@ LIC_FILES_CHKSUM = "file://../debian/copyright;md5=ee6bbaacb5db5f2973818f0902c3a DEPENDS += "glib-2.0 libbsd" +inherit pkgconfig + SRC_URI = "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_${PV}.orig.tar.gz;name=netcat \ ${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_${PV}-7.debian.tar.gz;name=netcat-patch" @@ -31,7 +33,7 @@ python do_patch() { do_compile() { cd ${S} pkgrel=4 - oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\"" + oe_runmake LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\"" } do_install() {