build logic.
-# $OpenBSD: Makefile.cross,v 1.76 2015/05/28 18:23:11 miod Exp $
+# $OpenBSD: Makefile.cross,v 1.77 2015/06/01 17:36:17 miod Exp $
cross-tools: cross-includes cross-binutils cross-gcc cross-lib
cross-distrib: cross-tools cross-bin cross-share cross-sys cross-etc-root-var
COMPILER_VERSION=gcc4
.endif
-.if !empty(BINUTILS215_ARCH:M${_arch})
-BINUTILS_VERSION=binutils
-.else
-BINUTILS_VERSION=binutils-2.17
-.endif
-
.if !empty(PIE_ARCH:M${_arch})
NOPIE_FLAGS=-fno-pie
NOPIE_LDFLAGS=-nopie
BINUTILS= ar as gasp ld nm objcopy objdump ranlib readelf size \
strings strip
-BINUTILS_DIR=gnu/usr.bin/${BINUTILS_VERSION}
+BINUTILS_DIR=gnu/usr.bin/binutils-2.17
.endfor
# no libcrypto.... these won't build
-# $OpenBSD: Makefile,v 1.55 2014/07/16 01:23:39 deraadt Exp $
+# $OpenBSD: Makefile,v 1.56 2015/06/01 17:36:19 miod Exp $
# $NetBSD: Makefile,v 1.35 1996/04/03 21:20:52 chuck Exp $
.include <bsd.own.mk>
.endif
SUBDIR+= cxxfilt cvs
-.if make(obj)
-SUBDIR+= binutils binutils-2.17
-.else
# binutils-2.17 needs to build gdb in binutils at the moment
-.if ${BINUTILS_VERSION} == "binutils-2.17"
SUBDIR+= binutils
-.endif
-SUBDIR+= ${BINUTILS_VERSION}
-.endif
+SUBDIR+= binutils-2.17
# Do these last; texinfo builds the info 'dir' file, perl must be after binutils
SUBDIR+= perl texinfo
-# $OpenBSD: Makefile.bsd-wrapper,v 1.82 2013/07/05 21:29:51 miod Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.83 2015/06/01 17:36:19 miod Exp $
.include <bsd.own.mk>
MANDIR=${PREFIX}/share/man/man
.endif
-.if ${BINUTILS_VERSION} == "binutils-2.17"
-
SUBDIRS= opcodes bfd gdb
CONF_SUBDIRS= ${SUBDIRS}
INST_SUBDIRS= gdb
MAN= gdb/gdb.1
-.else
-
-SUBDIRS= opcodes bfd
-CONF_SUBDIRS= opcodes bfd
-
-MAN= binutils/doc/addr2line.1 binutils/doc/objcopy.1 \
- binutils/doc/objdump.1 binutils/doc/readelf.1 \
- c++filt.1
-
-.if !defined(TARGET_ARCH) && !defined(BOOTSTRAP)
-CONF_SUBDIRS+= gdb
-SUBDIRS+= gdb
-INST_SUBDIRS+= gdb
-MAN+= gdb/gdb.1
-.endif
-
-SUBDIRS+= binutils ld gas
-CONF_SUBDIRS+= binutils ld gas
-INST_SUBDIRS+= binutils ld gas
-MAN+= binutils/doc/ar.1 binutils/doc/ranlib.1 \
- binutils/doc/strings.1 binutils/doc/strip.1 \
- gas/doc/as.1 ld/ld.1
-
-.endif
-
# Used by the GNU Makefile
ALL_MODULES=${SUBDIRS:S/^/all-/g}
CONFIGURE_MODULES=${CONF_SUBDIRS:S/^/configure-/g}
cd ${.OBJDIR} && \
${MAKE} ${CONFIGURE_MODULES}
-gas/doc/as.1: config.status
- cd ${.OBJDIR}/gas/doc && ${MAKE} as.1
-
-ld/ld.1: config.status
- cd ${.OBJDIR}/ld && ${MAKE} ld.1
-
config: do-config
.ifndef GLOBAL_AUTOCONF_CACHE
-rm -f config.cache
-# $OpenBSD: bsd.own.mk,v 1.167 2015/06/01 17:35:24 miod Exp $
+# $OpenBSD: bsd.own.mk,v 1.168 2015/06/01 17:36:19 miod Exp $
# $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $
# Host-specific overrides
DEBUGLIBS?= no
GCC3_ARCH=m88k vax
-BINUTILS215_ARCH=
# arm needs binutils-2.17, which still lacks W^X support
# sparc has not been tried
COMPILER_VERSION?=gcc4
.endif
-.if !empty(BINUTILS215_ARCH:M${_arch})
-BINUTILS_VERSION=binutils
-.else
-BINUTILS_VERSION=binutils-2.17
-.endif
-
.if !empty(STATICPIE_ARCH:M${_arch})
STATICPIE?=-pie
.endif