Skip to content

Commit

Permalink
Add linker commands to include legacy libs when compiling towards leg…
Browse files Browse the repository at this point in the history
…acy Linux.
  • Loading branch information
LongDirtyAnimAlf committed Oct 24, 2023
1 parent d345d33 commit 82e1d02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/gitrevision.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[master]v2.4.0bp-2831(68d6361)
[master]v2.4.0bp-2832(d345d33)
7 changes: 7 additions & 0 deletions sources/installerfpc.pas
Original file line number Diff line number Diff line change
Expand Up @@ -4516,6 +4516,13 @@ function TFPCInstaller.BuildModule(ModuleName: string): boolean;
ConfigText.Append('-Fu'+s);
ConfigText.Append('-Fu'+s+DirectorySeparator+'*');
ConfigText.Append('-Fu'+s+DirectorySeparator+'rtl');
ConfigText.Append('-k--no-as-needed');
ConfigText.Append('-k-l:libanl.so.1');
ConfigText.Append('-k-l:libdl.so.2');
ConfigText.Append('-k-l:librt.so.1');
ConfigText.Append('-k-l:libresolve.so.2');
ConfigText.Append('-k-l:libpthread.so.0');
ConfigText.Append('-k--as-needed');
ConfigText.Append('#ENDIF');
{$endif}

Expand Down

0 comments on commit 82e1d02

Please sign in to comment.