Adjust gdb-python checks

This commit is contained in:
Gedare Bloom 2019-07-29 15:12:50 -06:00
parent 639eed3c77
commit 4f903fb57c

View File

@ -108,7 +108,7 @@
%define gdb-host-libs -L '%{host_ldflags}'
%endif
%if %{gdb-python-config} != %{nil}
%define gdb-python-lib-filter awk 'BEGIN{FS=" "}/python/{for(i=1;i<NF;++i)if(match($i,".*python.*")) print "lib"substr($i,3)"*";}'
%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})
%define gdb-python-lib-check %(%{_sbdir}/sb/rtems-build-dep -c %{__cc} %{gdb-host-libs} -l %{gdb-python-config-libs})
%else