Remove -liconv from the default LDFLAGS if we're building on linux, since iconv

support is built-in.  If this ever causes an issue between glibc and iconv
support I'll add a warning.

Originally committed to SVN as r2170.
This commit is contained in:
Amar Takhar 2008-04-10 16:15:26 +00:00
parent 0607976605
commit 041820e259
1 changed files with 9 additions and 1 deletions

View File

@ -52,6 +52,10 @@ case "$target_or_host" in
build_darwin="yes"
;;
*-*-linux*)
build_linux="yes"
;;
*)
build_default="yes"
;;
@ -398,7 +402,11 @@ AC_ARG_VAR([ICONV_CFLAGS], [CFLAGS to use for iconv (default: CPPFLAGS)])
AC_ARG_VAR([ICONV_LDFLAGS], [LDFLAGS to use for iconv (default: LDFLAGS -liconv)])
if test -z "$ICONV_LDFLAGS"; then
ICONV_LDFLAGS="$LDFLAGS -liconv";
if "$build_linux" = "yes"; then
ICONV_LDFLAGS="$LDFLAGS"
else
ICONV_LDFLAGS="$LDFLAGS -liconv";
fi
fi
if test -z "$ICONV_CFLAGS"; then