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. Bump PKGREVISION because this changes the compiled package on netbsd-6.diff -r1.13 -r1.14 pkgsrc/print/xetex/Makefile
(dholland)
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.13 2012/08/13 10:42:18 drochner Exp $ | 1 | # $NetBSD: Makefile,v 1.14 2012/08/22 19:44:27 dholland Exp $ | |
2 | 2 | |||
3 | DISTNAME= texlive-20120701-source | 3 | DISTNAME= texlive-20120701-source | |
4 | PKGNAME= xetex-0.9998 | 4 | PKGNAME= xetex-0.9998 | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 2 | |
6 | CATEGORIES= print | 6 | CATEGORIES= print | |
7 | MASTER_SITES= ftp://tug.org/historic/systems/texlive/2012/ | 7 | MASTER_SITES= ftp://tug.org/historic/systems/texlive/2012/ | |
8 | EXTRACT_SUFX= .tar.xz | 8 | EXTRACT_SUFX= .tar.xz | |
9 | 9 | |||
10 | MAINTAINER= minskim@NetBSD.org | 10 | MAINTAINER= minskim@NetBSD.org | |
11 | HOMEPAGE= http://www.tug.org/xetex/ | 11 | HOMEPAGE= http://www.tug.org/xetex/ | |
12 | COMMENT= TeX system with Unicode and modern font technologies | 12 | COMMENT= TeX system with Unicode and modern font technologies | |
13 | 13 | |||
14 | CONFLICTS+= web2c<=7.5.7 | 14 | CONFLICTS+= web2c<=7.5.7 | |
15 | DEPENDS+= xdvipdfmx-[0-9]*:../../print/xdvipdfmx | 15 | DEPENDS+= xdvipdfmx-[0-9]*:../../print/xdvipdfmx | |
16 | 16 | |||
17 | EXTRACT_ELEMENTS= ${DISTNAME}/build-aux \ | 17 | EXTRACT_ELEMENTS= ${DISTNAME}/build-aux \ | |
18 | ${DISTNAME}/libs/graphite ${DISTNAME}/libs/icu \ | 18 | ${DISTNAME}/libs/graphite ${DISTNAME}/libs/icu \ |
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.11 2012/07/31 18:44:03 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.12 2012/08/22 19:44:27 dholland Exp $ | |
2 | 2 | |||
3 | SHA1 (texlive-20120701-source.tar.xz) = e41ef31eba27891f3434e01638d3559cc6958016 | 3 | SHA1 (texlive-20120701-source.tar.xz) = e41ef31eba27891f3434e01638d3559cc6958016 | |
4 | RMD160 (texlive-20120701-source.tar.xz) = df09b657919a3f203309645028803098f52bbac9 | 4 | RMD160 (texlive-20120701-source.tar.xz) = df09b657919a3f203309645028803098f52bbac9 | |
5 | Size (texlive-20120701-source.tar.xz) = 131904044 bytes | 5 | Size (texlive-20120701-source.tar.xz) = 131904044 bytes | |
6 | SHA1 (patch-libs_icu_icu-49_1_configure) = 3e21058a60b628c948b5156f911eab2aa5e4aaf7 | |||
6 | SHA1 (patch-texk_web2c_xetexdir_XeTeX__ext.c) = a83e842b567db6acb35cfab5303a7e96845fa953 | 7 | SHA1 (patch-texk_web2c_xetexdir_XeTeX__ext.c) = a83e842b567db6acb35cfab5303a7e96845fa953 |
$NetBSD: patch-libs_icu_icu-49_1_configure,v 1.1 2012/08/22 19:44:28 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.
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"