Permalink
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?
bee-files/gdb.be0
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
executable file
42 lines (30 sloc)
849 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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}"' |