diff options
Diffstat (limited to 'main/xen/detect_libiconv.patch')
-rw-r--r-- | main/xen/detect_libiconv.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/main/xen/detect_libiconv.patch b/main/xen/detect_libiconv.patch new file mode 100644 index 0000000000..5b2359eb67 --- /dev/null +++ b/main/xen/detect_libiconv.patch @@ -0,0 +1,22 @@ +# HG changeset patch +# Parent 2bc60167b9f8791747d2cea09c5207a9c2d7ef7b +build: detect is libiconv is present + +Detect if libiconv is present in the system, since we will have to +link against it when using iconv. + +Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> + +diff -r 2bc60167b9f8 Config.mk +--- a/Config.mk Tue Dec 20 05:25:19 2011 +0100 ++++ b/Config.mk Tue Dec 20 07:52:38 2011 +0100 +@@ -9,6 +9,10 @@ + XEN_OS ?= $(shell uname -s) + + CONFIG_$(XEN_OS) := y ++CONFIG_LIBICONV := $(shell export OS="`uname -s`"; \ ++ export CHECK_LIB="$(CHECK_LIB)"; \ ++ . $(XEN_ROOT)/tools/check/funcs.sh; \ ++ has_lib libiconv.so && echo 'y' || echo 'n') + + SHELL ?= /bin/sh |