| SUMMARY = "GNU debugger (cross-canadian gdb for ${TARGET_ARCH} target)" |
| PN = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}" |
| DEPENDS = "nativesdk-ncurses nativesdk-expat nativesdk-gettext nativesdk-readline nativesdk-python" |
| RDEPENDS_${PN} += "nativesdk-python-core nativesdk-python-lang nativesdk-python-re \ |
| nativesdk-python-codecs nativesdk-python-netclient" |
| GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'" |
| EXTRA_OECONF_append = " --with-python=${WORKDIR}/python" |
| SSTATE_DUPWHITELIST += "${STAGING_DATADIR}/gdb" |
| cat > ${WORKDIR}/python << EOF |
| --includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}/" ;; |
| --ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}" ;; |
| --exec-prefix) echo "${exec_prefix}" ;; |
| chmod +x ${WORKDIR}/python |
| # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the |
| # right bits installed by binutils. |
| rm -rf ${D}${exec_prefix}/lib |
| cross_canadian_bindirlinks |