mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-11 17:19:27 +00:00
gdb: fix building with NLS enabled
Building gdb failed with CONFIG_BUILD_NLS enabled. Use nls.mk and add the necessary dependencies for libintl and libiconv. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
22be18effb
commit
4a976beff4
@ -21,11 +21,12 @@ PKG_LICENSE:=GPL-3.0+
|
|||||||
PKG_CPE_ID:=cpe:/a:gnu:gdb
|
PKG_CPE_ID:=cpe:/a:gnu:gdb
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/nls.mk
|
||||||
|
|
||||||
define Package/gdb/Default
|
define Package/gdb/Default
|
||||||
SECTION:=devel
|
SECTION:=devel
|
||||||
CATEGORY:=Development
|
CATEGORY:=Development
|
||||||
DEPENDS:=+!USE_MUSL:libthread-db +zlib
|
DEPENDS:=+!USE_MUSL:libthread-db $(ICONV_DEPENDS) $(INTL_DEPENDS)
|
||||||
URL:=https://www.gnu.org/software/gdb/
|
URL:=https://www.gnu.org/software/gdb/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -44,7 +45,7 @@ endef
|
|||||||
define Package/gdbserver
|
define Package/gdbserver
|
||||||
$(call Package/gdb/Default)
|
$(call Package/gdb/Default)
|
||||||
TITLE:=Remote server for GNU Debugger
|
TITLE:=Remote server for GNU Debugger
|
||||||
DEPENDS=@!arc
|
DEPENDS+=@!arc
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gdbserver/description
|
define Package/gdbserver/description
|
||||||
@ -68,6 +69,7 @@ CONFIGURE_VARS+= \
|
|||||||
ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
|
ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
|
||||||
|
|
||||||
TARGET_LDFLAGS+= \
|
TARGET_LDFLAGS+= \
|
||||||
|
$(INTL_LDFLAGS) $(if $(INTL_FULL),-lintl) \
|
||||||
-static-libstdc++ \
|
-static-libstdc++ \
|
||||||
-Wl,--gc-sections
|
-Wl,--gc-sections
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user