[fpc-pascal] Linker script doesn't search in /usr/lib32 when cross compiling from x86_64 to i386

leledumbo leledumbo_cool at yahoo.co.id
Mon Jan 19 16:22:31 CET 2015


> Because we don't use the linker's "-T" option (the one the linker   
> warning refers to), the link.res should be added to the built-in   
> linker script of your system rather than replace it. This built-in   
> linker script should already contain the default library paths. Run   
> "ld -m elf_i386 --verbose" to see this built-in linker script. The   
> default directories are listed via SEARCH_DIR() near the top. 
> 
> I don't know what could have changed in FPC to cause your observed   
> change. Did you perhaps also regenerate your fpc.cfg configuration   
> file when updating? Maybe something changed in that regard.

Sorry, I forget to tell you that Marco has given the answer by using -Xd. ld
-m elf_i386 --verbose does show the forbidden-for-32-bit-target paths, so
it's ld behavior. I now specify correct -Fl surrounded in #ifdef - #endif
with target cpu as condition in my fpc.cfg.



--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Linker-script-doesn-t-search-in-usr-lib32-when-cross-compiling-from-x86-64-to-i386-tp5720749p5720799.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list