build: Make bt_shell conditional to readline
Subsystems (2)
Luiz Augusto von Dentz
maintainerPATCH 1/1 build: Make bt_shell conditional to readline
From: Luiz Augusto von Dentz <[email protected]>
bt_shell APIs shall only be build if readline is present on the system since it currently depend on it.
--- Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Makefile.am +5 -1
@@ -119,7 +119,11 @@ shared_sources = src/shared/io.h src/shared/timeout.h \ src/shared/gatt-server.h src/shared/gatt-server.c \ src/shared/gatt-db.h src/shared/gatt-db.c \ src/shared/gap.h src/shared/gap.c \ - src/shared/tty.h src/shared/shell.c src/shared/shell.h + src/shared/tty.h + +if READLINE +shared_sources += src/shared/shell.c src/shared/shell.h +endif src_libshared_glib_la_SOURCES = $(shared_sources) \ src/shared/io-glib.c \
Signature · 1 line
2.14.3
Hello,
Quoted 4 lines · Luiz Augusto von Dentz
From: Luiz Augusto von Dentz <[email protected]>
bt_shellAPIs shall only be build if readline is present on the system since it currently depend on it.
I've tested with a few different BlueZ configurations (not all combinations though), and all of them built fine. The specific configuration that was failing to build due to the dependency on readline no longer fails to build.
Thanks a lot Luiz for having looked so quickly at this bug report!
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
Hi,
Quoted 8 lines · Thomas Petazzoni
Hello,
Quoted 4 lines · Luiz Augusto von Dentz
From: Luiz Augusto von Dentz <[email protected]>
bt_shellAPIs shall only be build if readline is present on the system since it currently depend on it.
Quoted 8 lines
Tested-by Thomas Petazzoni <[email protected]>I've tested with a few different BlueZ configurations (not all combinations though), and all of them built fine. The specific configuration that was failing to build due to the dependency on readline no longer fails to build.
Thanks a lot Luiz for having looked so quickly at this bug report!
Applied.
Signature · 1 line
Luiz Augusto von Dentz