$NetBSD: patch-libs_icu_icu-49_1_configure,v 1.2 2012/08/22 19:46:58 dholland Exp $

Disable -ffunction-sections -fdata-sections and accompanying
--gc-sections on netbsd because --gc-sections doesn't work with the
netbsd-4 and netbsd-5 linker. See PR 46698 and PR 40401. Thanks to
Anthony Mallet for tracking the problem down.

At some point this patch should probably be made less blunt, and/or
upstream should fix it to test if the options work instead of going by
OS type.

--- libs/icu/icu-49.1/configure~	2012-03-21 15:06:23.000000000 +0000
+++ libs/icu/icu-49.1/configure
@@ -5259,6 +5259,9 @@ $as_echo_n "checking whether we can use 
             OLD_LDFLAGS="${LDFLAGS}"
 
             case "${host}" in
+	    *-netbsd*)
+		# --gc-sections does not work on netbsd-4 and netbsd-5
+		;;
             *-linux*|i*86-*-*bsd*|i*86-pc-gnu)
                 if test "$ac_cv_c_compiler_gnu" = yes; then
                     CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections"
