diff options
-rw-r--r-- | source-builder/config/gdb-common-1.cfg | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source-builder/config/gdb-common-1.cfg b/source-builder/config/gdb-common-1.cfg index 5847f11..397d44d 100644 --- a/source-builder/config/gdb-common-1.cfg +++ b/source-builder/config/gdb-common-1.cfg @@ -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}) |