mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
mklibs-native: new recipe for optimizing size of library files
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
0322d4c01b
commit
e1a9c8fb03
@@ -0,0 +1,17 @@
|
||||
Get the version of mklibs by simpler means. The MKLIBS_VERSION string in the
|
||||
configure.ac file is replaced with real version string by the
|
||||
do_configure_prepend() function from the recipe .bb file.
|
||||
|
||||
Nitin A Kamble <nitin.a.kamble@intel.com>
|
||||
Date: 2011/01/24
|
||||
|
||||
Index: mklibs/configure.ac
|
||||
===================================================================
|
||||
--- mklibs.orig/configure.ac 2010-02-21 17:34:56.000000000 -0800
|
||||
+++ mklibs/configure.ac 2011-01-24 18:52:19.943242079 -0800
|
||||
@@ -1,4 +1,4 @@
|
||||
-AC_INIT([mklibs],m4_esyscmd(dpkg-parsechangelog | perl -ne 'print $1 if m/^Version: (.*)$/;'))
|
||||
+AC_INIT([mklibs], MKLIBS_VERSION)
|
||||
AM_INIT_AUTOMAKE([foreign no-define])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AM_MAINTAINER_MODE
|
||||
@@ -0,0 +1,23 @@
|
||||
DESCRIPTION = "mklibs produces cut-down shared libraries that contain only the routines required by a particular set of executables."
|
||||
HOMEPAGE = "https://code.launchpad.net/mklibs"
|
||||
SECTION = "devel"
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://debian/copyright;md5=98d31037b13d896e33890738ef01af64"
|
||||
DEPENDS = "python-native"
|
||||
|
||||
PR = "r0"
|
||||
|
||||
SRC_URI = "http://ftp.de.debian.org/debian/pool/main/m/mklibs/${BPN}_${PV}.tar.gz \
|
||||
file://ac_init_fix.patch\
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "f4df0307ccbdf60070e42277513f27ed"
|
||||
SRC_URI[sha256sum] = "8f5595621eb09d52871c771861e81b032d10c31d15e5dd61fa7f5a9e5b7de405"
|
||||
|
||||
S = "${WORKDIR}/${BPN}"
|
||||
|
||||
inherit autotools gettext native
|
||||
|
||||
do_configure_prepend() {
|
||||
sed "s+MKLIBS_VERSION+${PV}+" ${S}/configure.ac
|
||||
}
|
||||
Reference in New Issue
Block a user