This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [3.1] More regressions on S/390 - revert lib64 patch


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]