Description: Prevent build failure when compiled with
 -Wformat -Werror=format-security.
 Pass LDFLAGS to the linker.
Author: Alessio Treglia <alessio@debian.org>
Forwarded: live-devel@lists.live555.com
---
 config.linux           |    2 +-
 testProgs/sapWatch.cpp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- liblivemedia.orig/testProgs/sapWatch.cpp
+++ liblivemedia/testProgs/sapWatch.cpp
@@ -66,7 +66,7 @@ int main(int argc, char** argv) {
     }
 
     packet[packetSize] = '\0'; // just in case
-    printf((char*)(packet+8));
+    printf("%s", (char*)(packet+8));
   }
 
   return 0; // only to prevent compiler warning
--- liblivemedia.orig/config.linux
+++ liblivemedia/config.linux
@@ -8,7 +8,7 @@ CPLUSPLUS_FLAGS =	$(COMPILE_OPTS) -Wall
 OBJ =			o
 LINK =			c++ -o
 LINK_OPTS =		-L.
-CONSOLE_LINK_OPTS =	$(LINK_OPTS)
+CONSOLE_LINK_OPTS =	$(LDFLAGS) $(LINK_OPTS)
 LIBRARY_LINK =		ar cr 
 LIBRARY_LINK_OPTS =	
 LIB_SUFFIX =			a
