mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
source-builder/config/gdb-common-1.cfg: Fix building with Python 3.8
Starting with Python 3.8, python3-config requires the "--embed" flag to print the flags required for embedding Python in an application. Fixes: error: shell macro failed: /home/anders/work/rtems/rsb/source-builder/sb/rtems-build-dep -c gcc -l : 2: error: no library (-l) provided Signed-off-by: Anders Montonen <Anders.Montonen@iki.fi>
This commit is contained in:
parent
ae9faa2726
commit
d5ad66747c
@ -109,7 +109,12 @@
|
||||
%endif
|
||||
%if %{gdb-python-config} != %{nil}
|
||||
%define gdb-python-lib-filter awk 'BEGIN{FS=" "}/python/{for(i=1;i<NF;++i)if(match($i,".*lpython.*")) print "lib"substr($i,3)"*";}'
|
||||
%define gdb-python-config-libs %(%{gdb-python-config} --ldflags | %{gdb-python-lib-filter})
|
||||
%if %{gdb-python-ver-mm} < 3.8
|
||||
%define gdb-python-config-lib-check-flags --ldflags
|
||||
%else
|
||||
%define gdb-python-config-lib-check-flags --ldflags --embed
|
||||
%endif
|
||||
%define gdb-python-config-libs %(%{gdb-python-config} %{gdb-python-config-lib-check-flags} | %{gdb-python-lib-filter})
|
||||
%define gdb-python-lib-check %(%{_sbdir}/sb/rtems-build-dep -c %{__cc} %{gdb-host-libs} -l %{gdb-python-config-libs})
|
||||
%else
|
||||
%define gdb-python-lib-check %(%{_sbdir}/sb/rtems-build-dep -c %{__cc} %{gdb-host-libs} -l %{gdb-python-ver-lib})
|
||||
|
Loading…
x
Reference in New Issue
Block a user