mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb/config: Fix GDB probes when using python-config.
- Fix the config file handling of shell calls where the shell command has nesting braces. - Fix the bool check to support a '!' next to the check value.
This commit is contained in:
@@ -108,8 +108,9 @@
|
||||
%define gdb-host-libs -L '%{host_ldflags}'
|
||||
%endif
|
||||
%if %{gdb-python-config} != %{nil}
|
||||
%define gdb-python-config-libs -l '%(%{gdb-python-config} --ldflags)'
|
||||
%define gdb-python-lib-check %(%{_sbdir}/sb/rtems-build-dep -c %{__cc} %{gdb-host-libs} %{gdb-python-config-libs})
|
||||
%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-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
|
||||
%define gdb-python-lib-check %(%{_sbdir}/sb/rtems-build-dep -c %{__cc} %{gdb-host-libs} -l %{gdb-python-ver-lib})
|
||||
%endif
|
||||
|
Reference in New Issue
Block a user