1require gdb-common.inc 2 3inherit gettext pkgconfig 4 5#LDFLAGS:append = " -s" 6#export CFLAGS:append=" -L${STAGING_LIBDIR}" 7 8# cross-canadian must not see this 9PACKAGES =+ "gdbserver" 10FILES:gdbserver = "${bindir}/gdbserver" 11 12require gdb.inc 13 14inherit python3-dir 15 16EXTRA_OEMAKE:append:libc-musl = "\ 17 gt_cv_func_gnugettext1_libc=yes \ 18 gt_cv_func_gnugettext2_libc=yes \ 19 gl_cv_func_working_strerror=yes \ 20 gl_cv_func_strerror_0_works=yes \ 21 gl_cv_func_gettimeofday_clobber=no \ 22 " 23 24do_configure:prepend() { 25 if [ "${@bb.utils.filter('PACKAGECONFIG', 'python', d)}" ]; then 26 cat > ${WORKDIR}/python << EOF 27#!/bin/sh 28case "\$2" in 29 --includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}/" ;; 30 --ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}${PYTHON_ABI}" ;; 31 --exec-prefix) echo "${exec_prefix}" ;; 32 *) exit 1 ;; 33esac 34exit 0 35EOF 36 chmod +x ${WORKDIR}/python 37 fi 38} 39 40