Skip to content
Permalink
077d6ef2a4
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Use Python 3.7 from /usr/local/system/python3.

We can no longer use gdbs --with-pythons, because it is totaly broken.
Instead of python-config.py from the package specified with
--with-python, a copy of an old python-config.py script from Python-2.7 is
embedded and used with the interpreter found via --with-python.

In our case, the required "-L" option is not returned.

However, if we add the needed CPPFLAGS and LDFLAGS, gdb/configure (run
during the build phase of the top level directory!) will notice that
Python just works.
3 contributors

Users who have contributed to this file

@donald @wwwutz @david
executable file 42 lines (30 sloc) 849 Bytes
#!/usr/bin/env beesh
# BEE_VERSION gdb-10.1-0
SRCURL[0]="http://ftp.gnu.org/gnu/gdb/gdb-${PKGVERSION}.tar.xz"
# PATCHURL+=()
# build_in_sourcedir
# sourcesubdir_append src
#mee_extract() {
# bee_extract "${@}"
#}
#mee_patch() {
# bee_patch "${@}"
#}
mee_configure() {
bee_configure \
CPPFLAGS="-I/usr/local/system/python3/include/python3.7m" \
LDFLAGS="-L/usr/local/system/python3/lib -Wl,-rpath=/usr/local/system/python3/lib -lpython3.7m"
}
#mee_build() {
# bee_build
#}
mee_install() {
bee_install
rm ${D}/usr/share/info/{annotate,bfd,stabs}.info
rm ${D}/usr/share/info/dir
rm ${D}/usr/lib/lib{bfd,opcodes}.{a,la}
rm -rf ${D}/usr/share/locale
rm -rf ${D}/usr/include
rm -rf ${D}/usr/share/gdb/system-gdbinit
}
## by default this may be 'make install DESTDIR="${D}"'