<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;" bgcolor="#ffffff" text="#2e3436" link="#1b6acb" vlink="#2e3436"><div>Hi Stephan,</div><div><span><pre><pre><br></pre></pre></span></div><div>On Tue, 2020-09-08 at 07:30 +0000, Stephan Lachnit wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre><br></pre><pre>The problem is, it don't even know how to apply the build options. The projects builds with lazbuild, and I didn't find any option to specify any compiler options.</pre><pre><br></pre><pre>If there is a way that requires modifying the Lazarus config of GOverlay, I can probably push that upstream.</pre></blockquote><div>Please try to open the lpi file using Lazarus, </div><div>1. go to Project/Project Options ... and then</div><div>1.1 go to Compiler Options/Paths and set Libraries(-Fl)</div><div>1.2 go to Compiler Options/Compilation and Linking and set Pass options to linker with "-k"</div><div><br></div><div>This will modify the .lpi file creating a section as follows:</div><pre> <CompilerOptions></pre><pre> <Version Value="11"/></pre><pre> <Target></pre><pre> <Filename Value="jeux"/></pre><pre> </Target></pre><pre> <SearchPaths></pre><pre> <IncludeFiles Value="$(ProjOutDir)"/></pre><pre> <Libraries Value="/usr/lib/${DEB_BUILD_MULTIARCH}/"/></pre><pre> <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/></pre><pre> </SearchPaths></pre><pre> <Linking></pre><pre> <Options></pre><pre> <PassLinkerOptions Value="True"/></pre><pre> <LinkerOptions Value="${LDFLAGS}"/></pre><pre> </Options></pre><pre> </Linking></pre><div></div><div> Now you will need to patch replacing ${*} by their content as lazbuild does not seem to replace the environment variables by their values.</div><pre><div class="-x-evo-signature-wrapper" style="font-family: Cantarell; white-space: normal;"><span class="-x-evo-signature" id="1423923852.20958.6@karim"><pre><pre>-- <br></pre>Cheers,
Abou Al Montacir</pre></span></div></pre></body></html>