Skip to content

Commit

Permalink
adjust gdb version selection
Browse files Browse the repository at this point in the history
- choose gdb-latest based on gcc version with c++11 support only
  • Loading branch information
hgy59 committed Sep 16, 2023
1 parent 4bad7fc commit 74d39b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions cross/gdb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ OPTIONAL_DEPENDS += cross/gdb-7.12

include ../../mk/spksrc.main-depends.mk

ifeq ($(findstring $(ARCH),$(ARMv5_ARCHS) $(PPC_ARCHS)),$(ARCH))
DEPENDS += cross/gdb-7.12
else
ifeq ($(call version_lt, $(TC_GCC), 4.8),1)
ifeq ($(call version_lt, $(TC_GCC), 4.8.1),1)
DEPENDS += cross/gdb-7.12
else
# A compiler with support for C++11 language features is required.
DEPENDS += cross/gdb-latest
endif
endif
6 changes: 1 addition & 5 deletions spk/synocli-devel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,11 @@ SPK_COMMANDS += bin/strip
##
## gdb
##
ifeq ($(findstring $(ARCH),$(ARMv5_ARCHS) $(PPC_ARCHS)),$(ARCH))
OPTIONAL_DESC += ", gdb 7.12.1"
else
ifeq ($(call version_lt, $(TC_GCC), 4.8),1)
ifeq ($(call version_lt, $(TC_GCC), 4.8.1),1)
OPTIONAL_DESC += ", gdb 7.12.1"
else
OPTIONAL_DESC += ", gdb 13.2"
endif
endif
SPK_COMMANDS += bin/gcore
SPK_COMMANDS += bin/gdb
SPK_COMMANDS += bin/gdb-add-index
Expand Down

0 comments on commit 74d39b6

Please sign in to comment.