Description: [PATCH] ide: fppkg: fixed allowing arbitrary paths on non windows
Author: mattias <nc-gaertnma@netcologne.de>

---
Origin: upstream, https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/dd95c556051e7e69272979772fc4037331a074f7.patch
Forwarded: not-needed
Last-Update: 2022-01-16

--- a/ide/generatefppkgconfigurationdlg.pas
+++ b/ide/generatefppkgconfigurationdlg.pas
@@ -208,23 +208,9 @@ begin
   end
   else
   begin
+    LibPath := AppendPathDelim(APrefix);
     LibPathValid := True;
 
-    {$IFNDEF WINDOWS}
-    LibPath := ConcatPaths([APrefix, 'lib', 'fpc']);
-    if not DirPathExistsCached(LibPath) then
-    begin
-      LibPath := ConcatPaths([APrefix, 'lib64', 'fpc']);
-      if not DirPathExistsCached(LibPath) then
-      begin
-        LibPathValid := False;
-      end;
-    end;
-    {$ELSE}
-    LibPath := APrefix;
-    {$ENDIF}
-    LibPath := IncludeTrailingPathDelimiter(LibPath);
-
     if DirPathExistsCached(LibPath+PathDelim+'fpmkinst') and
       DirPathExistsCached(LibPath+PathDelim+'units') then
     begin
-- 
GitLab

