linux version, CE projs, fPIC added when outputKind is sharedLib

+ hide allInst switch
This commit is contained in:
Basile Burg 2016-01-21 18:08:06 +01:00
parent 1ca1423579
commit 0ddc7acf6e
2 changed files with 24 additions and 1 deletions

View File

@ -614,6 +614,10 @@ begin
begin
str := binKindStr[fBinKind];
if str.isNotEmpty then aList.Add(str);
{$IFDEF UNIX}
if fBinKind = sharedlib then
aList.Add('-fPIC');
{$ENDIF}
str := trgKindStr[fTrgKind];
if str.isNotEmpty then aList.Add(str);
if fUnittest then aList.Add('-unittest');
@ -640,7 +644,22 @@ begin
baseopt := TOutputOpts(base);
str := binKindStr[fBinKind];
strbase := binKindStr[baseopt.fBinKind];
if (str <> strbase) then aList.Add(str) else aList.Add(strbase);
if (str <> strbase) then
begin
aList.Add(str);
{$IFDEF UNIX}
if fBinKind = sharedlib then
aList.Add('-fPIC');
{$ENDIF}
end
else
begin
aList.Add(strbase);
{$IFDEF UNIX}
if baseopt.fBinKind = sharedlib then
aList.Add('-fPIC');
{$ENDIF}
end;
str := trgKindStr[fTrgKind];
strbase := trgKindStr[baseopt.fTrgKind];
if (str <> strbase) then aList.Add(str) else aList.Add(strbase);

View File

@ -348,8 +348,12 @@ begin
aShow := false;
end;
if getGridTarget = fProj.currentConfiguration.outputOptions then
begin
if aEditor.GetName = 'noBoundsCheck' then
aShow := false
else if aEditor.GetName = 'generateAllTmpCode' then
aShow := false;
end;
if getGridTarget = fProj.currentConfiguration.debugingOptions then
begin
if aEditor.GetName = 'addCInformations' then