diff options
author | jperkin <jperkin@pkgsrc.org> | 2012-11-20 23:05:22 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2012-11-20 23:05:22 +0000 |
commit | 5049c1823cb7ba9b5a16aa13b6a1e7f2bb466afb (patch) | |
tree | be2fd1736b3b2b2e9bffe0e0d090ce26ee2e3664 /devel/binutils | |
parent | 633c8cb65f4fae15bbd349d40bac69118ca3e67b (diff) | |
download | pkgsrc-5049c1823cb7ba9b5a16aa13b6a1e7f2bb466afb.tar.gz |
Do not install 'ld' symlinks on Solaris, to avoid accidental usage.
Bump PKGREVISION.
Diffstat (limited to 'devel/binutils')
-rw-r--r-- | devel/binutils/Makefile | 24 | ||||
-rw-r--r-- | devel/binutils/PLIST.common | 6 |
2 files changed, 22 insertions, 8 deletions
diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile index 740e083adc9..ab815e5c279 100644 --- a/devel/binutils/Makefile +++ b/devel/binutils/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.46 2012/10/31 11:16:40 asau Exp $ +# $NetBSD: Makefile,v 1.47 2012/11/20 23:05:22 jperkin Exp $ DISTNAME= binutils-2.22 +PKGREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU:=binutils/} @@ -34,10 +35,15 @@ INSTALLATION_DIRS= gnu/bin gnu/man/man1 # gprof (XXX: and others?) cannot be built on all platforms # -PLIST_VARS+= gprof +PLIST_VARS+= gprof ld .include "../../mk/bsd.prefs.mk" .if ${OPSYS} != "IRIX" PLIST.gprof= yes +EXTRA_FILES+= gprof +.endif +.if ${OPSYS} != "SunOS" +PLIST.ld= yes +EXTRA_FILES+= ld .endif .include "../../mk/compiler.mk" @@ -57,14 +63,22 @@ post-configure: fi .endfor +SYMLINK_FILES = addr2line ar as c++filt dlltool elfedit ld.bfd \ + nlmconv nm objcopy objdump ranlib readelf size strings \ + strip windmc windres +.if ${PLIST.gprof} == "yes" +SYMLINK_FILES+= gprof +.endif +.if ${PLIST.ld} == "yes" +SYMLINK_FILES+= ld +.endif + post-install: cd ${DESTDIR}${PREFIX} && \ find ${MACHINE_GNU_PLATFORM}/lib/ldscripts -type f -print \ | sort -r \ > ${WRKDIR}/PLIST_DYNAMIC -.for f in addr2line ar as c++filt dlltool elfedit gprof ld ld.bfd \ - nlmconv nm objcopy objdump ranlib readelf size strings strip \ - windmc windres +.for f in ${SYMLINK_FILES} set -e; \ if [ -f ${DESTDIR}${PREFIX}/bin/g${f:Q} ]; then \ ${LN} -sf ${PREFIX}/bin/g${f} ${DESTDIR}${PREFIX}/gnu/bin/${f}; \ diff --git a/devel/binutils/PLIST.common b/devel/binutils/PLIST.common index c411a6fa3c7..1193b3f55d9 100644 --- a/devel/binutils/PLIST.common +++ b/devel/binutils/PLIST.common @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST.common,v 1.17 2012/07/23 12:24:34 jperkin Exp $ +@comment $NetBSD: PLIST.common,v 1.18 2012/11/20 23:05:22 jperkin Exp $ ${MACHINE_GNU_PLATFORM}/bin/ar ${MACHINE_GNU_PLATFORM}/bin/as ${MACHINE_GNU_PLATFORM}/bin/ld @@ -30,7 +30,7 @@ gnu/bin/as gnu/bin/c++filt ${PLIST.gprof}gnu/bin/gprof gnu/bin/elfedit -gnu/bin/ld +${PLIST.ld}gnu/bin/ld gnu/bin/ld.bfd gnu/bin/nm gnu/bin/objcopy @@ -46,7 +46,7 @@ gnu/man/man1/as.1 gnu/man/man1/c++filt.1 gnu/man/man1/dlltool.1 ${PLIST.gprof}gnu/man/man1/gprof.1 -gnu/man/man1/ld.1 +${PLIST.ld}gnu/man/man1/ld.1 gnu/man/man1/elfedit.1 gnu/man/man1/nlmconv.1 gnu/man/man1/nm.1 |