This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [3.1] More regressions on S/390 - revert lib64 patch
- From: Richard Henderson <rth at redhat dot com>
- To: Ulrich Weigand <Ulrich dot Weigand at de dot ibm dot com>
- Cc: Alan Modra <amodra at bigpond dot net dot au>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 29 Apr 2002 13:11:35 -0700
- Subject: Re: [3.1] More regressions on S/390 - revert lib64 patch
- References: <OFE75F4BAF.B3EE0A33-ONC1256BAA.005AB465@de.ibm.com>
On Mon, Apr 29, 2002 at 06:48:18PM +0200, Ulrich Weigand wrote:
> In particular, I'd like to be able to build s390 (31-bit) RPMs on a
> s390x (64-bit) system without modifying the .spec files.
>
> Do you think this should be done by having a real cross-compiler
> (maybe in a 'native-cross' variant)? Or rather just use the -m32/-m64
> options?
Hard to say.
/usr/lib/rpm/rpmrc can set optflags to include -m32 and -m64, then
you use --target to force building for the non-default variant.
OTOH, some makefiles are badly written and lose track of the options
that were passed down from the top-level make. At which point you
get link errors mixing 32/64 objs.
OTOH, some makefiles are to poorly written that they lose track of
CC too, so at some point you have to just start fixing build losage.
r~