<p>Am 18.12.2012 17:47 schrieb "Thomas Schatzl" <<a href="mailto:tom_at_work@gmx.at">tom_at_work@gmx.at</a>>:<br>
><br>
> Hi,<br>
><br>
> On Tue, 2012-12-18 at 17:35 +0100, Sven Barth wrote:<br>
> > > === objdump end ===<br>
> > ><br>
> > > The first one shouldn't be the full pathname... also isn't the linker<br>
> > > on Android called "/system/bin/linker"?<br>
><br>
> You're trying to generate an executable or a shared library (.so)?<br>
></p>
<p>A shared library as this is what's needed for usage of the LCL. See also examples/androidlcl of a current Lazarus version (at least 1.0).</p>
<p>> > ><br>
> > > Do I need any further options besides the -Xp..., -FD..., -Fl...,<br>
> > > -CpARMv6 and -CfSoft to build a library?<br>
> > Ok... first: it was a stray "-FLlibdl.so" from a former test with non<br>
> > working binutils.<br>
><br>
> You mean the one with the full path has been added in error?</p>
<p>Yes. The binutils with version 2.19 crashed without reasons and on the Lazarus forum there were suggestions to add "-FLlibdl.so". I had added that to the fpc.cfg and forgot to remove it when I cleanly rebuild with the 2.21 binutils. This was all before I started to write you.</p>
<p>> > When I remove it the library can't be linked though...<br>
><br>
> What is "it" exactly? Which library cannot be linked? What's the error?</p>
<p>"it" was the "-FLlibdl.so" and "the library" is the one I'm trying to build. Sorry for the confusion.</p>
<p>> Just checked, for libraries "/system/bin/linker" should be added<br>
> automatically (compiler/systems/t_android.pas)<br>
><br>
> > The following options are set in fpc.cfg for Android:<br>
> ><br>
> > -XParm-linux-androideabi-<br>
> > -FDD:\Android\android-ndk-r8c\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin<br>
> > -FlD:\Android\android-ndk-r8c\platforms\android-8\arch-arm\usr\lib\<br>
> ><br>
> > The following arguments are added by Lazarus (the last three were<br>
> > already part of the project - removing -Xd does also not change anything):<br>
> ><br>
> > -MObjFPC -Scghi -O1 -Tandroid -Parm -Xs -XX -vewnhi -l<br>
> > -Filib\arm-android -Fu..\..\lcl\units\arm-android\customdrawn<br>
> > -Fu..\..\lcl\units\arm-android<br>
> > -Fu..\..\components\lazutils\lib\arm-android<br>
> > -Fu..\..\packager\units\arm-android -Fu. -FUlib\arm-android\<br>
> > -FEandroid\libs\armeabi\ -oliblclapp.so -dLCL -dLCLcustomdrawn -dANDROID<br>
> > -Xd -CpARMV6<br>
><br>
> Looks okay, but I will see if I can find these tests I was mentioning.<br>
> That stuff is on a different computer though.<br>
><br>
> Looking through compiler/systems/t_android.pas, you may want to try<br>
> commmenting line 343, the one that adds info.Dynamiclinker to the input<br>
> files. Looks wrong.<br>
> (system/bin/linker is passed to ld later as --dynamic-linker option<br>
> later anyway).</p>
<p>I will try that.</p>
<p>Regards,<br>
Sven<br>
</p>