Files
gentoo/dev-lang/fpc/files/fpc-3.2.2-pas2js-textrels.patch
Alexander Tsoy d970f1dc66 dev-lang/fpc: allow textrels in pas2js
This fixes build on 32 bit arches using hardened binutils.

Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1766
Merges: https://codeberg.org/gentoo/gentoo/pulls/1766
Signed-off-by: Sam James <sam@gentoo.org>
2026-09-10 00:10:28 +01:00

14 lines
425 B
Diff

--- a/utils/pas2js/fpmake.pp 2024-07-21 19:58:24.000000000 +0200
+++ b/utils/pas2js/fpmake.pp 2026-02-07 15:54:55.725497010 +0100
@@ -24,8 +24,10 @@
P.Email := 'michael@freepascal.org';
P.NeedLibC:= false;
P.ShortName:='p2js';
+ P.Options.Add('-k-znotext');
+
P.Directory:=ADirectory;
P.Version:='3.2.2';
P.OSes:=AllUnixOSes+AllBSDOSes+AllWindowsOSes-[WinCE];
if Defaults.CPU=jvm then