This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[Patch/VMS] Adjust build script
- From: Tristan Gingold <gingold at adacore dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Tue, 15 Sep 2009 12:57:49 +0200
- Subject: [Patch/VMS] Adjust build script
Hi,
I am committing this patch to fix two minors issues on VMS:
* libiberty/hashtab.c now uses intptr_t
* gas/config/te-vms.c must be compiled only on ia64.
(committed also on the branch).
Tristan.
gas/
2009-09-15 Tristan Gingold <gingold@adacore.com>
* makefile.vms (OBJS): Compile te-vms.c only on Itanium.
libiberty/
2009-09-15 Tristan Gingold <gingold@adacore.com>
* config.h-vms (intptr_t): Define to compile hashtab.c
diff -c -r1.7 makefile.vms
*** gas/makefile.vms 7 Sep 2009 09:15:31 -0000 1.7
--- gas/makefile.vms 15 Sep 2009 10:55:01 -0000
***************
*** 20,32 ****
#LFLAGS=/debug/map=as.map
endif
! OBJS=targ-cpu.obj,obj-format.obj,atof-targ.obj,app.obj,as.obj,atof-
generic.obj,\
! te-vms.obj,cond.obj,depend.obj,expr.obj,flonum-konst.obj,\
flonum-copy.obj,flonum-mult.obj,frags.obj,hash.obj,input-file.obj,\
input-scrub.obj,literal.obj,messages.obj,output-file.obj,read.obj,\
subsegs.obj
,symbols.obj,write.obj,listing.obj,ecoff.obj,stabs.obj,sb.obj,\
macro.obj,ehopt.obj,dw2gencfi.obj,dwarf2dbg.obj,remap.obj
LIBIBERTY = [-.libiberty]libiberty.olb
LIBBFD = [-.bfd]libbfd.olb
LIBOPCODES = [-.opcodes]libopcodes.olb
--- 20,36 ----
#LFLAGS=/debug/map=as.map
endif
! OBJS:=targ-cpu.obj,obj-format.obj,atof-targ.obj,app.obj,as.obj,\
! atof-generic.obj,cond.obj,depend.obj,expr.obj,flonum-konst.obj,\
flonum-copy.obj,flonum-mult.obj,frags.obj,hash.obj,input-file.obj,\
input-scrub.obj,literal.obj,messages.obj,output-file.obj,read.obj,\
subsegs.obj
,symbols.obj,write.obj,listing.obj,ecoff.obj,stabs.obj,sb.obj,\
macro.obj,ehopt.obj,dw2gencfi.obj,dwarf2dbg.obj,remap.obj
+ ifeq ($(ARCH),IA64)
+ OBJS:=$(OBJS),te-vms.obj
+ endif
+
LIBIBERTY = [-.libiberty]libiberty.olb
LIBBFD = [-.bfd]libbfd.olb
LIBOPCODES = [-.opcodes]libopcodes.olb
Index: libiberty/config.h-vms
===================================================================
RCS file: /cvs/src/src/libiberty/config.h-vms,v
retrieving revision 1.6
diff -c -r1.6 config.h-vms
*** libiberty/config.h-vms 25 May 2009 13:27:56 -0000 1.6
--- libiberty/config.h-vms 15 Sep 2009 10:55:02 -0000
***************
*** 5,10 ****
--- 5,13 ----
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TIME_H 1
+ /* intptr_t is defined in inttypes.h! */
+ #define intptr_t __int64
+
/* Cheat: use vms builtin alloca. */
#ifdef __DECC
#define C_alloca(x) __ALLOCA(x)