Files
meta-openembedded/meta-perl/recipes-perl/libstatgrab/libunix-statgrab_0.112.bb
Khem Raj 67df2ce4c9 libunix-statgrab: Use compiler driver for linking as well
the build system tries to deduce the compiler and its friends and fails
because OE passes LDFLAGS assuming that linker will be invoked via
compiler driver ( gcc or clang ) therefore prefixes linker options with
-Wl, but libunix-statgrab build system enquires LD variable for linker
and uses LDFLAGS with it, which causes linker to fail since ld does not
recognise -Wl, etc. Therefore using CCLD for linker is right choice here

Fixes
Checking for cc... i686-yoe-linux-ld: unrecognized option '-Wl,-O1'
i686-yoe-linux-ld: use the --help option for usage information

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-06 10:15:36 -08:00

41 lines
1.4 KiB
BlitzBasic

SUMMARY = "Perl interface to the libstatgrab library"
DESCRIPTION = "Unix::Statgrab is a wrapper for libstatgrab as available from \
<http://www.i-scream.org/libstatgrab/>. It is a reasonably portable attempt \
to query interesting stats about your computer. It covers information on \
the operating system, CPU, memory usage, network interfaces, hard-disks \
etc."
HOMEPAGE = "https://metacpan.org/release/Unix-Statgrab"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0+ | LGPL-2.1+"
DEPENDS += "libcapture-tiny-perl-native"
DEPENDS += "libconfig-autoconf-perl-native"
DEPENDS += "libstatgrab"
RDEPENDS:${PN} += "\
libstatgrab \
perl-module-autoloader \
perl-module-carp \
perl-module-dynaloader \
perl-module-exporter \
perl-module-strict \
perl-module-vars \
perl-module-warnings \
"
SRC_URI = "${CPAN_MIRROR}/authors/id/R/RE/REHSACK/Unix-Statgrab-${PV}.tar.gz"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
file://${COMMON_LICENSE_DIR}/GPL-1.0-or-later;md5=30c0b8a5048cc2f4be5ff15ef0d8cf61 \
file://${COMMON_LICENSE_DIR}/LGPL-2.1-or-later;md5=2a4f4fd2128ea2f65047ee63fbca9f68 \
"
SRC_URI[md5sum] = "a6bc06b3f7749f7d77a2b1bd13402821"
SRC_URI[sha256sum] = "16a29f7acaeec081bf0e7303ba5ee24fda1d21a1104669b837745f3ea61d6afa"
S = "${WORKDIR}/Unix-Statgrab-${PV}"
export LD = "${CCLD}"
inherit cpan pkgconfig ptest-perl
BBCLASSEXTEND = "native"