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}"
|
|
|
|
}
|
|
|
|
|
2016-12-07 12:07:31 +00:00
|
|
|
do_install_append_class-native () {
|
2011-10-06 18:25:56 +00:00
|
|
|
if test "${libdir}" = "${base_libdir}" ; then
|
|
|
|
return
|
|
|
|
fi
|
2017-01-05 21:15:08 +00:00
|
|
|
librelpath=${@os.path.relpath(d.getVar('libdir'), d.getVar('base_libdir'))}
|
|
|
|
baselibrelpath=${@os.path.relpath(d.getVar('base_libdir'), d.getVar('libdir'))}
|
2016-12-07 12:07:31 +00:00
|
|
|
|
2011-09-24 18:56:47 +00:00
|
|
|
# Remove bad symlinks & create the correct symlinks
|
2016-12-07 12:07:31 +00:00
|
|
|
if test -L ${D}${libdir}/lib${BPN}.so ; then
|
|
|
|
rm -rf ${D}${libdir}/lib${BPN}.so
|
|
|
|
ln -sf $baselibrelpath/lib${BPN}.so ${D}${libdir}/lib${BPN}.so
|
2011-09-24 18:56:47 +00:00
|
|
|
fi
|
2016-12-07 12:07:31 +00:00
|
|
|
if test -L ${D}${base_libdir}/lib${BPN}.a ; then
|
|
|
|
rm -rf ${D}${base_libdir}/lib${BPN}.a
|
|
|
|
ln -sf $librelpath/lib${BPN}.a ${D}${base_libdir}/lib${BPN}.a
|
2011-09-24 18:56:47 +00:00
|
|
|
fi
|
2016-12-07 12:07:31 +00:00
|
|
|
if test -L ${D}${base_libdir}/lib${BPN}.la ; then
|
|
|
|
rm -rf ${D}${base_libdir}/lib${BPN}.la
|
|
|
|
ln -sf $librelpath/lib${BPN}.la ${D}${base_libdir}/lib${BPN}.la
|
2011-09-24 18:56:47 +00:00
|
|
|
fi
|
|
|
|
}
|
2016-12-07 12:07:31 +00:00
|
|
|
|
|
|
|
PACKAGES =+ "lib${BPN}"
|
|
|
|
|
|
|
|
FILES_lib${BPN} = "${base_libdir}/lib*${SOLIBS}"
|
|
|
|
|
|
|
|
BBCLASSEXTEND = "native"
|
|
|
|
# Only append ldflags for target recipe and if USE_NLS is enabled
|
2016-12-14 21:13:04 +00:00
|
|
|
LDFLAGS_append_libc-uclibc_class-target = "${@['', ' -lintl '][(d.getVar('USE_NLS') == 'yes')]}"
|
|
|
|
EXTRA_OECONF_append_libc-uclibc_class-target = "${@['', ' --disable-gettext '][(d.getVar('USE_NLS') == 'no')]}"
|