summaryrefslogtreecommitdiff
path: root/dev-lang/fpc/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-11-18 18:59:02 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-11-18 18:59:02 +0000
commit1b07dd0a2cbe034321c613ee58a1f99a0df17995 (patch)
treecb7abb08f5c9c7b7d5e79a0b69936696dccbd5c0 /dev-lang/fpc/files
parent0374a8491c853f9331b95ed2a38e688e4d2edce5 (diff)
gentoo auto-resync : 18:11:2022 - 18:59:02
Diffstat (limited to 'dev-lang/fpc/files')
-rw-r--r--dev-lang/fpc/files/fpc-3.2.2-sparc-find-libs.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-lang/fpc/files/fpc-3.2.2-sparc-find-libs.patch b/dev-lang/fpc/files/fpc-3.2.2-sparc-find-libs.patch
new file mode 100644
index 000000000000..c7f7d6d6829b
--- /dev/null
+++ b/dev-lang/fpc/files/fpc-3.2.2-sparc-find-libs.patch
@@ -0,0 +1,16 @@
+# Fix finding a user's library dirs on sparc64.
+# Patch adapted from https://gitlab.com/freepascal.org/fpc/source/-/commit/aca84a812800fce7ef0377b43501a8efae755a13
+
+diff --git a/compiler/systems/t_linux.pas b/compiler/systems/t_linux.pas
+index 2dad1d321cc246ae69996a7df29270762a2f1fec..9768d756acbabe9edeac3c9378c0be0b6d5d4d9d 100644
+--- a/compiler/systems/t_linux.pas
++++ b/compiler/systems/t_linux.pas
+@@ -182,5 +199,8 @@ procedure SetupLibrarySearchPath;
+ {$ifdef sparc64}
+ LibrarySearchPath.AddLibraryPath(sysrootpath,'=/usr/lib/sparc64-linux-gnu',true);
++ LibrarySearchPath.AddLibraryPath(sysrootpath,'=/lib/sparc64-linux-gnu',true);
++ LibrarySearchPath.AddLibraryPath(sysrootpath,'=/usr/lib64',true);
++ LibrarySearchPath.AddLibraryPath(sysrootpath,'=/lib64',true);
+ {$endif sparc64}
+ {$ifdef riscv32}
+ LibrarySearchPath.AddLibraryPath(sysrootpath,'=/usr/lib/riscv32-linux-gnu',true);