[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling binutils on AIX with xlc/xlC
From: |
Thomas Jahns |
Subject: |
Compiling binutils on AIX with xlc/xlC |
Date: |
Thu, 25 Nov 2010 14:05:30 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.24 (X11/20100328) |
Hi,
I did some minor modification of binutils to compile it on AIX with xlc/xlC (for
objdump which is so far also the only program I tested). The
binutils/Makefile.am assumes a compiler knows about -Wno-error but xlc doesn't.
It seems this was solved in other parts of the code by substituting a variable
NO_ERROR so I used that.
I thought I'd make the modifications available, so here's the patch.
Greetings, Thomas
--
Thomas Jahns
DKRZ GmbH, Department: Application software
Deutsches Klimarechenzentrum
Bundesstraße 45a
D-20146 Hamburg
Phone: +49-40-460094-151
Fax: +49-40-460094-270
Email: Thomas Jahns <address@hidden>
diff -ur binutils-2.20/binutils/Makefile.am
binutils-2.20.patch-wno-error/binutils/Makefile.am
--- binutils-2.20/binutils/Makefile.am 2009-09-09 10:13:23.000000000 +0200
+++ binutils-2.20.patch-wno-error/binutils/Makefile.am 2010-11-25
13:41:07.000000000 +0100
@@ -255,16 +255,16 @@
syslex.o: syslex.c sysinfo.h config.h
if [ -r syslex.c ]; then \
- $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) syslex.c
-Wno-error ; \
+ $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) syslex.c
$(NO_ERROR) ; \
else \
- $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/syslex.c -Wno-error ;\
+ $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/syslex.c $(NO_ERROR) ;\
fi
sysinfo.o: sysinfo.c
if [ -r sysinfo.c ]; then \
- $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) sysinfo.c
-Wno-error ; \
+ $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) sysinfo.c
$(NO_ERROR) ; \
else \
- $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/sysinfo.c -Wno-error ; \
+ $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/sysinfo.c $(NO_ERROR) ; \
fi
bin2c$(EXEEXT_FOR_BUILD):
diff -ur binutils-2.20/binutils/Makefile.in
binutils-2.20.patch-wno-error/binutils/Makefile.in
--- binutils-2.20/binutils/Makefile.in 2009-09-09 10:13:23.000000000 +0200
+++ binutils-2.20.patch-wno-error/binutils/Makefile.in 2010-11-25
13:41:18.000000000 +0100
@@ -1197,16 +1197,16 @@
syslex.o: syslex.c sysinfo.h config.h
if [ -r syslex.c ]; then \
- $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) syslex.c
-Wno-error ; \
+ $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) syslex.c
$(NO_ERROR) ; \
else \
- $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/syslex.c -Wno-error ;\
+ $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/syslex.c $(NO_ERROR) ;\
fi
sysinfo.o: sysinfo.c
if [ -r sysinfo.c ]; then \
- $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) sysinfo.c
-Wno-error ; \
+ $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) sysinfo.c
$(NO_ERROR) ; \
else \
- $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/sysinfo.c -Wno-error ; \
+ $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/sysinfo.c $(NO_ERROR) ; \
fi
bin2c$(EXEEXT_FOR_BUILD):
Only in binutils-2.20.patch-wno-error/binutils: autom4te.cache
smime.p7s
Description: S/MIME Cryptographic Signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Compiling binutils on AIX with xlc/xlC,
Thomas Jahns <=