From: David C. <cl...@au...> - 2004-01-14 00:00:36
|
I agree that this isn't something to be solved by any compiler modification. I would go back to Ralf's suggestion to uncomment load64bit:2:wait:/etc/methods/cfg64 from your inittab file. This simply allows 64-bit executables to run; meanwhile your program can still be compiled and executed as a 32-bit executable. The "bind64" is actually the default binder (back-end to the 'ld' command) if you are running on a 64-bit machine. The distinction is that "bind64" itself is a 64-bit executable, but it can be used to create either 32-bit or 64-bit executables, whichever you requested. It will create 32-bit executables by default. Normally you don't even pay any attention to 'bind' (or 'bind64') because ld runs it for you. However, if you really don't want to allow 64-bit executables to run, you could override the default binder. When you do your compile, whether it is with gcc or cc, add LDFLAGS="-Wl,-bbinder:/usr/ccs/bin/bind" to tell 'ld' to use the other bind backend. If you allow 64-bit binaries though, you wouldn't have to override this. On Wed, Jan 14, 2004 at 09:00:29AM +0100, J.Smith wrote: > > ----- Original Message ----- > From: <Ema...@te...> > > > > > > P.S. I tried to edit the specs file under: > > > /opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/spe > cs > > but doesn't work! > > > > Ok, I know this is going to sound REALLY silly, but ... > > Arent you supposed to just be editing the Makefile of the program that you > are trying to compile here, instead of editing the spec file of the GCC > source RPM itself? > > > PS: > Please keep the replys on the list, thanks. > > ----- Original Message ----- > From: <Ema...@te...> > To: "J. Smith" <lba...@ho...> > Sent: Tuesday, January 13, 2004 5:18 PM > Subject: Antwort: RE: Antwort: Re: [tbox-l] compiling 32bit with gcc on aix > 5.2 with gcc-2.9.aix51.020209-4 > > > > Sorry, > > > > doesn't work :-( > > > > Still some ideas? > > > > Greetings > > > > Emanuel > > > > P.S. I tried to edit the specs file under: > > > /opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/spe > cs > > but doesn't work! > > > > > > > > > > > > > > > > "J. Smith" <lba...@ho...> > > 13.01.2004 16:56 > > > > > > An: Ema...@te..., > Ral...@Ph... > > Kopie: aix...@os... > > Thema: RE: Antwort: Re: [tbox-l] compiling 32bit with gcc on aix > 5.2 with > > gcc-2.9.aix51.020209-4 > > > > > > > > > > > >Is there an other way to tell gcc to use the normal bind ? > > > > > > > I believe you might be looking for > > > > gcc -maix64 > > versus > > gcc -maix32 > > > > But I was always under the impression that the default for AIX/gcc was > > '-maix32' ... > > > > > > Oh well... > > > > _________________________________________________________________ > > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > > http://join.msn.com/?page=features/featuredemail > > > > > > > > > _______________________________________________ > aixtoolbox-list mailing list > aix...@ww... > http://www-124.ibm.com/developerworks/oss/mailman/listinfo/aixtoolbox-list -- David Clissold cl...@au... |