Browse Source

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.
hfreyther/master-poky
Holger Hans Peter Freyther 4 years ago
parent
commit
3f352433bd
  1. 4
      recipes-support/netcat-openbsd/netcat-openbsd_1.105.bb

4
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() {

Loading…
Cancel
Save