Hello.

> Sorry, I didn't notice that you use Manjaro,

Huh, after some bad experience with my ex-favorite Linux OS, I just have
switched to a not-Debion OS: Arch-Manjaro.

> I thought it's about PolyDev. 

With polYdev it is a other problem: FreeBSD multi-arch design is not
compatible with their garbage-manager.

> One wold need to debug FPC. 

Ok, chief, I get the guilty and the solution.

In /fpcsrc/compiler/systems/t_linux.pas, line 155:

procedure SetupLibrarySearchPath;

----------------------------------
{$ifdef x86_64}
...
{$else}
  
LibrarySearchPath.AddPath(sysrootpath,'/lib;/usr/lib;/usr/X11R6/lib',true);
{$endif}
---------------------------

Could be changed with this:
(and so not oblige to use -Xd parameter, even in multi-arch)

----------------------------------
{$ifdef x86_64}
...
{$else}
  
LibrarySearchPath.AddPath(sysrootpath,'/usr/lib32;/usr/X11R6/lib;/usr/lib;/lib',true);
{$endif}
---------------------------

Tested and works.
IMHO, the hierarchy of search-path is better too (and follows what they did
for{$ifdef x86_64}.

PS: Last commit of t_linux is from 2008, maybe in those time multi-arch was
not tested.

Here MSEide 64 bit running on a 64 bit multi-arch:
<http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/mseide64.png> 

And here MSEide 32 bit running on a 64 bit multi-arch:
<http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/mseide32.png> 

Huh, with 32 bit app, 30 % less ressource needed (with same result, even
faster).

Fre;D






--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to