blob: e73e3a2c5c6b8b5a7454dfc34de662ec1ffa39a2 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001require gdb.inc
2require gdb-${PV}.inc
3
4inherit python3-dir
5
Patrick Williams213cb262021-08-07 19:21:33 -05006EXTRA_OEMAKE:append:libc-musl = "\
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08007 gt_cv_func_gnugettext1_libc=yes \
8 gt_cv_func_gnugettext2_libc=yes \
9 gl_cv_func_working_strerror=yes \
10 gl_cv_func_strerror_0_works=yes \
11 gl_cv_func_gettimeofday_clobber=no \
12 "
13
Patrick Williams213cb262021-08-07 19:21:33 -050014do_configure:prepend() {
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080015 if [ "${@bb.utils.filter('PACKAGECONFIG', 'python', d)}" ]; then
16 cat > ${WORKDIR}/python << EOF
17#!/bin/sh
18case "\$2" in
19 --includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}/" ;;
20 --ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}${PYTHON_ABI}" ;;
21 --exec-prefix) echo "${exec_prefix}" ;;
22 *) exit 1 ;;
23esac
24exit 0
25EOF
26 chmod +x ${WORKDIR}/python
27 fi
28}