Skip to content

Commit

Permalink
Fix a regression where "-static" switch was not taken into account by…
Browse files Browse the repository at this point in the history
… the binder

Issue: eng/gpr/gpr-issues#421

Merge request eng/gpr/gprbuild!121 from branch 'issue-421-binder-switch-static-no-longer-respected' into 'master'
  • Loading branch information
Ankyrine committed Nov 27, 2024
2 parents dab4a6e + 4c65da8 commit 48f5161
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gprbind.adb
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,13 @@ begin
-- Ignore -C, as the generated sources are always in Ada

elsif Line (1 .. Last) /= "-C" then
if Line (1 .. Last) = Dash_Static then
Static_Libs := True;

elsif Line (1 .. Last) = Dash_Shared then
Static_Libs := False;
end if;

Binding_Options_Table.Append (Line (1 .. Last));
end if;

Expand Down

0 comments on commit 48f5161

Please sign in to comment.