If target is BFD64, define -DBFD_TARG_64 on command line.
If BFD_TARG_64 is defined, set BFD_ARCH_SIZE to 64 even on 32-bit platforms. (BFD_ARCH_SIZE is an attribute of the target, not (just) the host platform) This is intended for building 32bit->64bit cross libbfd's (e.g., x86->alpha or x86->sparc64)
This commit is contained in:
parent
4b814be9cf
commit
65bfbb747a
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.10 1999/04/30 14:41:38 kleink Exp $
|
||||
# $NetBSD: Makefile,v 1.11 1999/08/01 04:25:39 sommerfeld Exp $
|
||||
|
||||
LIB= bfd
|
||||
|
||||
@ -22,6 +22,7 @@ BFD_SLIM=
|
||||
.if (${MACHINE_ARCH} == "alpha") || \
|
||||
(${MACHINE_ARCH} == "sparc64")
|
||||
BFD64=
|
||||
CPPFLAGS += -DBFD_TARG_64
|
||||
.endif
|
||||
|
||||
DIST= ${.CURDIR}/../../dist
|
||||
|
@ -1,10 +1,10 @@
|
||||
# $NetBSD: bfd-h.sed,v 1.1 1999/02/09 15:57:53 tv Exp $
|
||||
# $NetBSD: bfd-h.sed,v 1.2 1999/08/01 04:25:40 sommerfeld Exp $
|
||||
# Preparse bfd.h such that it can be used on multiple machines.
|
||||
|
||||
s/@VERSION@/2.9.1/
|
||||
/@wordsize@/{
|
||||
i\
|
||||
#if defined(__alpha__) || defined (__sparc_v9__)\
|
||||
#if defined(__alpha__) || defined (__sparc_v9__) || defined(BFD_TARG_64)\
|
||||
#define BFD_ARCH_SIZE 64\
|
||||
#else\
|
||||
#define BFD_ARCH_SIZE 32\
|
||||
|
Loading…
Reference in New Issue
Block a user