bluez: fix build with statically build ncurses/readline

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-09-24 22:20:37 +02:00
parent efaa2638b1
commit 1d13e05d64

View File

@ -0,0 +1,42 @@
diff -Naur bluez-5.22/Makefile.tools bluez-5.22.patch/Makefile.tools
--- bluez-5.22/Makefile.tools 2014-08-06 19:25:36.000000000 +0200
+++ bluez-5.22.patch/Makefile.tools 2014-09-24 19:33:38.061067877 +0200
@@ -7,7 +7,7 @@
client/agent.h client/agent.c \
monitor/uuid.h monitor/uuid.c
client_bluetoothctl_LDADD = gdbus/libgdbus-internal.la @GLIB_LIBS@ @DBUS_LIBS@ \
- -lreadline
+ -lreadline -lncurses
endif
if MONITOR
@@ -372,12 +372,12 @@
client/display.h \
src/shared/crypto.h src/shared/crypto.c
-attrib_gatttool_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@ -lreadline
+attrib_gatttool_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@ -lreadline -lncurses
tools_obex_client_tool_SOURCES = $(gobex_sources) $(btio_sources) \
tools/obex-client-tool.c
tools_obex_client_tool_LDADD = lib/libbluetooth-internal.la \
- @GLIB_LIBS@ -lreadline
+ @GLIB_LIBS@ -lreadline -lncurses
tools_obex_server_tool_SOURCES = $(gobex_sources) $(btio_sources) \
tools/obex-server-tool.c
@@ -386,12 +386,12 @@
tools_bluetooth_player_SOURCES = tools/bluetooth-player.c \
client/display.h client/display.c
tools_bluetooth_player_LDADD = gdbus/libgdbus-internal.la \
- @GLIB_LIBS@ @DBUS_LIBS@ -lreadline
+ @GLIB_LIBS@ @DBUS_LIBS@ -lreadline -lncurses
tools_obexctl_SOURCES = tools/obexctl.c \
client/display.h client/display.c
tools_obexctl_LDADD = gdbus/libgdbus-internal.la \
- @GLIB_LIBS@ @DBUS_LIBS@ -lreadline
+ @GLIB_LIBS@ @DBUS_LIBS@ -lreadline -lncurses
endif
if EXPERIMENTAL