fix, linux32, phobos not added to libman on first run

This commit is contained in:
Basile Burg 2015-05-31 03:29:27 +02:00
parent fc137ac565
commit ec0a337c1a
1 changed files with 5 additions and 2 deletions

View File

@ -89,11 +89,14 @@ begin
{$ENDIF}
{$IFDEF LINUX}
// add phobos
if DirectoryExists('/usr/include/dmd/phobos') and FileExists('/usr/lib/libphobos2.a') then
if DirectoryExists('/usr/include/dmd/phobos') then
begin
with TLibraryItem(fCol.Add) do begin
libAlias := 'phobos';
libFile := '/usr/lib/libphobos2.a';
if FileExists('/usr/lib/libphobos2.a') then
libFile := '/usr/lib/libphobos2.a'
else if FileExists('/usr/lib32/libphobos2.a') then
libFile := '/usr/lib32/libphobos2.a';
libSourcePath := '/usr/include/dmd/phobos';
end;
end;