| @@ -1,18 +1,19 @@ | | | @@ -1,18 +1,19 @@ |
1 | $NetBSD: patch-libs_icu_icu-49_1_configure,v 1.1 2012/08/22 19:44:28 dholland Exp $ | | 1 | $NetBSD: patch-libs_icu_icu-49_1_configure,v 1.2 2012/08/22 19:46:58 dholland Exp $ |
2 | | | 2 | |
3 | Disable -ffunction-sections -fdata-sections and accompanying | | 3 | Disable -ffunction-sections -fdata-sections and accompanying |
4 | --gc-sections on netbsd because --gc-sections doesn't work with the | | 4 | --gc-sections on netbsd because --gc-sections doesn't work with the |
5 | netbsd-4 and netbsd-5 linker. See PR 46698 and PR 40401. | | 5 | netbsd-4 and netbsd-5 linker. See PR 46698 and PR 40401. Thanks to |
| | | 6 | Anthony Mallet for tracking the problem down. |
6 | | | 7 | |
7 | At some point this patch should probably be made less blunt, and/or | | 8 | At some point this patch should probably be made less blunt, and/or |
8 | upstream should fix it to test if the options work instead of going by | | 9 | upstream should fix it to test if the options work instead of going by |
9 | OS type. | | 10 | OS type. |
10 | | | 11 | |
11 | --- libs/icu/icu-49.1/configure~ 2012-03-21 15:06:23.000000000 +0000 | | 12 | --- libs/icu/icu-49.1/configure~ 2012-03-21 15:06:23.000000000 +0000 |
12 | +++ libs/icu/icu-49.1/configure | | 13 | +++ libs/icu/icu-49.1/configure |
13 | @@ -5259,6 +5259,9 @@ $as_echo_n "checking whether we can use | | 14 | @@ -5259,6 +5259,9 @@ $as_echo_n "checking whether we can use |
14 | OLD_LDFLAGS="${LDFLAGS}" | | 15 | OLD_LDFLAGS="${LDFLAGS}" |
15 | | | 16 | |
16 | case "${host}" in | | 17 | case "${host}" in |
17 | + *-netbsd*) | | 18 | + *-netbsd*) |
18 | + # --gc-sections does not work on netbsd-4 and netbsd-5 | | 19 | + # --gc-sections does not work on netbsd-4 and netbsd-5 |