]> Git Repo - buildroot-mgba.git/commitdiff
package/gdb: append to dependencies in conditional
authorThomas Petazzoni <[email protected]>
Sat, 9 Oct 2021 19:16:41 +0000 (21:16 +0200)
committerYann E. MORIN <[email protected]>
Sun, 10 Oct 2021 08:44:33 +0000 (10:44 +0200)
Repeat after me: "Forcing the value of <pkg>_DEPENDENCIES inside a
conditional is the root of all evil."

Repeat after me: "Forcing the value of <pkg>_DEPENDENCIES inside a
conditional is the root of all evil."

Repeat after me: "Forcing the value of <pkg>_DEPENDENCIES inside a
conditional is the root of all evil."

Repeat after me: "Forcing the value of <pkg>_DEPENDENCIES inside a
conditional is the root of all evil."

Enough? :-)

Due to this mistake, any other GDB_DEPENDENCIES defined before this
assignment were lost. For example, the host-flex host-bison added
inside the GDB_FROM_GIT==y condition were ignored if
BR2_PACKAGE_GDB_DEBUGGER.

Fixes the build of all ARC configurations that have
BR2_PACKAGE_GDB_DEBUGGER enabled.

Signed-off-by: Thomas Petazzoni <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
package/gdb/gdb.mk

index f9010019f53d7d515f52c838ee6e2c233cb4df6b..4ead75289eb4b0af334c168356f7c722dc0cc34a 100644 (file)
@@ -147,7 +147,7 @@ ifeq ($(BR2_PACKAGE_GDB_DEBUGGER),y)
 GDB_CONF_OPTS += \
        --enable-gdb \
        --with-curses
-GDB_DEPENDENCIES = ncurses \
+GDB_DEPENDENCIES += ncurses \
        $(if $(BR2_PACKAGE_LIBICONV),libiconv)
 else
 GDB_CONF_OPTS += \
This page took 0.0364 seconds and 4 git commands to generate.