build.patch

From: Christian Prochaska <christian.prochaska@genode-labs.com>


---
 src/Makefile     |    2 +-
 src/xxd/Makefile |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index e473ca2..52b75e4 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1698,7 +1698,7 @@ $(VIMTARGET): auto/config.mk objects $(OBJ) version.c version.h
 		MAKE="$(MAKE)" sh $(srcdir)/link.sh
 
 xxd/xxd$(EXEEXT): xxd/xxd.c
-	cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" \
+	cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" \
 		$(MAKE) -f Makefile
 
 # Build the language specific files if they were unpacked.
diff --git a/src/xxd/Makefile b/src/xxd/Makefile
index 97bbcc7..099330a 100644
--- a/src/xxd/Makefile
+++ b/src/xxd/Makefile
@@ -1,7 +1,7 @@
 # The most simplistic Makefile
 
 xxd: xxd.c
-	$(CC) $(CFLAGS) $(LDFLAGS) -DUNIX -o xxd xxd.c
+	$(CC) $(CFLAGS) $(LDFLAGS) -DUNIX -o xxd xxd.c $(LIBS)
 
 clean:
 	rm -f xxd xxd.o
