This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
config.bfd fix
- To: binutils at sourceware dot cygnus dot com
- Subject: config.bfd fix
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Fri, 17 Aug 2001 13:45:58 +0930
You can't use #ifdef to do anything in a shell script :)
* config.bfd (targ64_selvecs): New.
<powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
Committing to mainline.
--
Alan Modra
Index: bfd/config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.61
diff -u -p -r1.61 config.bfd
--- config.bfd 2001/08/01 15:18:32 1.61
+++ config.bfd 2001/08/17 04:08:58
@@ -5,6 +5,8 @@
# Sets the following shell variables:
# targ_defvec Default vector for this target
# targ_selvecs Vectors to build for this target
+# targ64_selvecs Vectors to build if --enable-64-bit-bfd is given
+# or if host is 64 bit.
# targ_archs Architectures for this target
# targ_cflags $(CFLAGS) for this target (FIXME: pretty bogus)
# targ_underscore Whether underscores are used: yes or no
@@ -23,6 +25,7 @@
targ_defvec=
targ_selvecs=
+targ64_selvecs=
targ_cflags=
targ_underscore=no
@@ -724,9 +727,7 @@ case "${targ}" in
powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
targ_defvec=rs6000coff_vec
-#ifdef BFD64
- targ_selvecs="rs6000coff64_vec"
-#endif
+ targ64_selvecs="rs6000coff64_vec"
;;
#ifdef BFD64
powerpc64-*-aix*)
@@ -947,6 +948,12 @@ case "${targ}" in
echo 1>&2 "*** BFD does not support target ${targ}."
echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
exit 1
+ ;;
+esac
+
+case "${host64}${want64}" in
+ *true*)
+ targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
;;
esac