2010-07-29 10:34:42 +00:00
|
|
|
# this build system is mostly shared by attr and acl
|
|
|
|
|
2010-10-09 04:41:39 +00:00
|
|
|
SRC_URI += "file://relative-libdir.patch;striplevel=0 \
|
2011-04-21 06:10:45 +00:00
|
|
|
"
|
2010-07-29 10:34:42 +00:00
|
|
|
|
2014-02-27 18:01:44 +00:00
|
|
|
inherit autotools-brokensep gettext
|
2010-07-29 10:34:42 +00:00
|
|
|
|
|
|
|
# the package comes with a custom config.h.in, it cannot be
|
|
|
|
# overwritten by autoheader
|
2014-11-28 21:30:00 +00:00
|
|
|
EXTRA_AUTORECONF += "--exclude=autoheader"
|
2010-07-29 10:34:42 +00:00
|
|
|
EXTRA_OECONF = "INSTALL_USER=root INSTALL_GROUP=root"
|
recipes-support: replace virtclass-native(sdk) with class-native(sdk)
The overrides virtclass-native and virtclass-nativesdk are deprecated,
which should be replaced by class-native and class-nativesdk.
NOTE:
There were 2 errors in libcap.inc, the BUILD_LDFLAGS_virtclass_native
should be BUILD_LDFLAGS_virtclass-native (the "_" should be "-"),
otherwise it doesn't work, and the value was: "-Wl,rpath=...", this is
incorrect, it shoudl be: "-Wl,-rpath=..." (lacked a - ), but we don't
need this line, since it is already in the default BUILD_LDFLAGS. Remove
it and we don't need to bump the PR since we just removed a unused line.
[YOCTO #3297]
(From OE-Core rev: cafb550fe9034754933f1708446dde155dcc3d51)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-27 08:48:17 +00:00
|
|
|
EXTRA_OECONF_append_class-native = " --enable-gettext=no"
|
2010-07-29 10:34:42 +00:00
|
|
|
|
|
|
|
EXTRA_OEMAKE = "PKG_LIB_DIR=${base_libdir} PKG_DEVLIB_DIR=${libdir}"
|
|
|
|
|
|
|
|
do_install () {
|
|
|
|
oe_runmake install install-lib install-dev DIST_ROOT="${D}"
|
|
|
|
}
|
|
|
|
|
2015-04-10 09:29:55 +00:00
|
|
|
PACKAGES =+ "lib${BPN}"
|
2010-07-29 10:34:42 +00:00
|
|
|
|
2012-01-19 00:01:52 +00:00
|
|
|
FILES_lib${BPN} = "${base_libdir}/lib*${SOLIBS}"
|
2010-07-29 10:34:42 +00:00
|
|
|
|
|
|
|
BBCLASSEXTEND = "native"
|
2011-07-16 01:48:18 +00:00
|
|
|
# Only append ldflags for target recipe and if USE_NLS is enabled
|
2014-05-06 12:50:55 +00:00
|
|
|
LDFLAGS_append_libc-uclibc_class-target = "${@['', ' -lintl '][(d.getVar('USE_NLS', True) == 'yes')]}"
|
|
|
|
EXTRA_OECONF_append_libc-uclibc_class-target = "${@['', ' --disable-gettext '][(d.getVar('USE_NLS', True) == 'no')]}"
|
2011-09-24 18:56:47 +00:00
|
|
|
|
|
|
|
fix_symlink () {
|
2011-10-06 18:25:56 +00:00
|
|
|
if test "${libdir}" = "${base_libdir}" ; then
|
|
|
|
return
|
|
|
|
fi
|
2011-09-24 18:56:47 +00:00
|
|
|
# Remove bad symlinks & create the correct symlinks
|
|
|
|
if test -L ${libdir}/lib${BPN}.so ; then
|
|
|
|
rm -rf ${libdir}/lib${BPN}.so
|
|
|
|
ln -sf ${base_libdir}/lib${BPN}.so ${libdir}/lib${BPN}.so
|
|
|
|
fi
|
|
|
|
if test -L ${base_libdir}/lib${BPN}.a ; then
|
|
|
|
rm -rf ${base_libdir}/lib${BPN}.a
|
|
|
|
ln -sf ${libdir}/lib${BPN}.a ${base_libdir}/lib${BPN}.a
|
|
|
|
fi
|
|
|
|
if test -L ${base_libdir}/lib${BPN}.la ; then
|
|
|
|
rm -rf ${base_libdir}/lib${BPN}.la
|
|
|
|
ln -sf ${libdir}/lib${BPN}.la ${base_libdir}/lib${BPN}.la
|
|
|
|
fi
|
|
|
|
}
|
recipes-support: replace virtclass-native(sdk) with class-native(sdk)
The overrides virtclass-native and virtclass-nativesdk are deprecated,
which should be replaced by class-native and class-nativesdk.
NOTE:
There were 2 errors in libcap.inc, the BUILD_LDFLAGS_virtclass_native
should be BUILD_LDFLAGS_virtclass-native (the "_" should be "-"),
otherwise it doesn't work, and the value was: "-Wl,rpath=...", this is
incorrect, it shoudl be: "-Wl,-rpath=..." (lacked a - ), but we don't
need this line, since it is already in the default BUILD_LDFLAGS. Remove
it and we don't need to bump the PR since we just removed a unused line.
[YOCTO #3297]
(From OE-Core rev: cafb550fe9034754933f1708446dde155dcc3d51)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-27 08:48:17 +00:00
|
|
|
SSTATEPOSTINSTFUNCS_class-native += "fix_symlink"
|