Hi Eric, That will not be enough as it will still just find the 64-bit libs. Maybe we should implement a check in utils.c if it is a ELF32 or ELF64 lib which we try to import.
André Hentschel a écrit :
Hi Eric, That will not be enough as it will still just find the 64-bit libs. Maybe we should implement a check in utils.c if it is a ELF32 or ELF64 lib which we try to import.
AFAICS it's not worse than when we use -b i386-elf when building for wow64, we use winegcc for linking either 32bit or 64bit execs (with the --sysroot switch) not use what you propose will help... it'll prevent an error later on in gcc (or ld), but if winegcc is passed directories with wrong libraries, it should, IMO, fail and not try to find the right lib
A+
Eric Pouech eric.pouech@orange.fr writes:
AFAICS it's not worse than when we use -b i386-elf when building for wow64, we use winegcc for linking either 32bit or 64bit execs (with the --sysroot switch) not use what you propose will help... it'll prevent an error later on in gcc (or ld), but if winegcc is passed directories with wrong libraries, it should, IMO, fail and not try to find the right lib
It should skip libraries that have the wrong 32/64 type, like gcc does. That's of course not supported yet since our import libs don't contain that information.