diff options
author | Pete Batard <pbatard@gmail.com> | 2010-03-08 00:40:31 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-03-08 00:40:31 +0000 |
commit | 3b33bade3909ed83d566238e0e00d02ca376d18a (patch) | |
tree | 0870d2be164142cc47d80daaea9da8137f24ae78 | |
parent | bb6dcbdf19d8bdeb5595704b53f4d687768da3a7 (diff) | |
download | libusb-3b33bade3909ed83d566238e0e00d02ca376d18a.tar.gz |
fix libtool issue when building shared libs with Chinese localer199
This patch modifies the ltmain.sh (and therefore libtool) scripts to
force the locale to C, even if not defined.
-rwxr-xr-x | autogen.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -4,6 +4,12 @@ (glibtoolize --version) < /dev/null > /dev/null 2>&1 && LIBTOOLIZE=glibtoolize || LIBTOOLIZE=libtoolize $LIBTOOLIZE --copy --force || exit 1 +# Force ltmain's NLS test to set locale to C always. Prevents an +# issue when compiling shared libs with MinGW on Chinese locale. +type -P sed &>/dev/null || { echo "sed command not found. Aborting." >&2; exit 1; } +sed -e s/\\\\\${\$lt_var+set}/set/g ltmain.sh > lttmp.sh +mv lttmp.sh ltmain.sh +# aclocal || exit 1 autoheader || exit 1 autoconf || exit 1 |