2013-05-09 08:48:35 +00:00
|
|
|
require gdb.inc
|
2013-10-16 14:05:36 +00:00
|
|
|
require gdb-${PV}.inc
|
2013-07-14 07:04:20 +00:00
|
|
|
|
2016-06-02 09:25:54 +00:00
|
|
|
inherit python3-dir
|
2013-07-14 07:04:20 +00:00
|
|
|
|
2016-07-29 22:28:01 +00:00
|
|
|
EXTRA_OEMAKE_append_libc-musl = "\
|
|
|
|
gt_cv_func_gnugettext1_libc=yes \
|
|
|
|
gt_cv_func_gnugettext2_libc=yes \
|
2016-12-19 06:39:49 +00:00
|
|
|
gl_cv_func_gettimeofday_clobber=no \
|
2016-07-29 22:28:01 +00:00
|
|
|
"
|
|
|
|
|
2013-07-14 07:04:20 +00:00
|
|
|
do_configure_prepend() {
|
2017-02-27 13:02:50 +00:00
|
|
|
if [ "${@bb.utils.filter('PACKAGECONFIG', 'python', d)}" ]; then
|
2013-07-14 07:04:20 +00:00
|
|
|
cat > ${WORKDIR}/python << EOF
|
|
|
|
#!/bin/sh
|
|
|
|
case "\$2" in
|
2016-06-02 09:25:54 +00:00
|
|
|
--includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}/" ;;
|
|
|
|
--ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}${PYTHON_ABI}" ;;
|
2013-07-14 07:04:20 +00:00
|
|
|
--exec-prefix) echo "${exec_prefix}" ;;
|
|
|
|
*) exit 1 ;;
|
|
|
|
esac
|
|
|
|
exit 0
|
|
|
|
EOF
|
|
|
|
chmod +x ${WORKDIR}/python
|
|
|
|
fi
|
|
|
|
}
|
2016-05-01 01:41:57 +00:00
|
|
|
CFLAGS_append_libc-musl = " -Drpl_gettimeofday=gettimeofday"
|