pkgsrc/cross/avr-binutils/Makefile
mef b598eb69a9 Update cross/avr-binutils to 2.30
Date: 	Sat, 27 Jan 2018 16:33:36 +0000
  This release contains numerous bug fixes, and also the
  following new features:

  In the assembler:
      * Add support for location views in DWARF debug line information.

  In the BFD linker:
      * Add -z separate-code to generate separate code PT_LOAD segment.

    * Add "-z undefs" command line option as the inverse of the "-z defs" option.

    * Add -z globalaudit command line option to force audit libraries to be run
      for every dynamic object loaded by an executable - provided that the loader
      supports this functionality.

    * Tighten linker script grammar around file name
      specifiers to prevent the use of SORT_BY_ALIGNMENT and
      SORT_BY_INIT_PRIORITY on filenames.  These would
      previously be accepted but had no effect.

    * The EXCLUDE_FILE directive can now be placed within any
      SORT_* directive within input section lists.

  In the GOLD linker:
    * Add support for .MIPS.options sections (MIPS only).

    * Add support for compound relocations (MIPS only).

    * Add --emit-stub-syms, --no-tls-optimize, --tls-get-addr-optimize
      options (PowerPC only).

    * Add -z text-unlikely-segment option.

    * Add plugin support for adding new input files
      (LDPT_REGISTER_NEW_INPUT_HOOK).

  In the utilities:
    * Add --debug-dump=links option to readelf and
      --dwarf=links option to objdump which displays the
      contents of any .gnu_debuglink or .gnu_debugaltlink
      sections.

    * Add a --debug-dump=follow-links option to readelf and a
      --dwarf=follow-links option to objdump which causes  indirect
      links into separate debug info files to be followed when
      dumping other DWARF sections.
2018-07-16 12:56:48 +00:00

63 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.29 2018/07/16 12:56:48 mef Exp $
DISTNAME= binutils-2.30
PKGNAME= ${DISTNAME:S/^/avr-/}
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= GNU binutils for Atmel AVR 8-bit RISC microcontrollers
LICENSE= gnu-gpl-v3
# No need to use makeinfo - this package doesn't install the documentation.
USE_TOOLS+= gmake
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
USE_PKGLOCALEDIR= yes
USE_GNU_CONFIGURE_HOST= no
# follows to devel/binutils
# PR pkg/48504, ksh is sufficient for NetBSD 5.2 and NetBSD 6.1
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-[5-6].*-*) && \
empty(MACHINE_PLATFORM:MNetBSD-6.99.*-*)
USE_TOOLS+= ksh
CONFIG_SHELL= ksh
.endif
CONFIGURE_ARGS+= --disable-werror --target=avr --disable-nls
AUTO_MKDIRS= yes
# Prevent the need to run texi2pod.pl and pod2man hence
# the need for perl as build dependency.
post-configure:
set -e; \
cd ${WRKSRC}; \
for f in ld/ldver.texi ld/ld.1 gas/doc/gasver.texi \
gas/doc/as.1; do \
${TOUCH} $${f}; \
done
# emulator/simulavr wants libbfd.so or libbfd.a and bfd.h
# --with-bfd=path location of AVR-binutils version of libbfd install
# where include/bfd.h and lib/libbfd.a are found (from binutils)
post-build:
set -e; \
(cd ${WRKSRC}/bfd; ${GMAKE} all libbfd.a);
post-install:
# Emulator/simulvar needs library files
(cd ${WRKSRC}/bfd; \
${GMAKE} install-exec install-data; \
${LIBTOOL} --mode install ${INSTALL_DATA} libbfd.la ${DESTDIR}${PREFIX}/avr/lib; \
${INSTALL_DATA} bfd.h ${DESTDIR}${PREFIX}/avr/include; \
)
# emulator/simulavr wants following header files
(cd ${WRKSRC}/include; \
for f in ansidecl.h symcat.h; do \
${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/avr/include; \
done; \
)
.include "../../mk/bsd.pkg.mk"