Skip to content

Commit 9dc0985

Browse files
Merge branch 'issue-93-gprconfig_kb-libstdc-binder-flags-should-be-added-when-libgcc-equivalents-are-forced-fastos' into 'master'
fastos: use shared libs for mixed Ada/C++ applications See merge request eng/gpr/gprconfig_kb!18
2 parents 1950310 + 144d75a commit 9dc0985

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

db/linker.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,12 +1547,21 @@
15471547
</config>
15481548
</configuration>
15491549

1550+
<!-- On most platforms, g++ would use shared-libstdc++ by default:
1551+
some features (e.g. thread cancellation) are known to be broken
1552+
with static linking for C/C++. On the other hand, Ada uses
1553+
-static-libgcc by default. This static/shared mix would not work.
1554+
In order to fix that, we follow the choice of C++ (shared libs)
1555+
when C++ is in the partition.
1556+
For more details, see eng/gpr/gpr-issues#93 and P918-005. -->
1557+
15501558
<configuration>
15511559
<compilers>
15521560
<compiler language="C++" />
15531561
</compilers>
15541562
<targets>
15551563
<target name="^.*linux.*$" />
1564+
<target name="^.*fastos.*$" />
15561565
<target name="^.*sunos.*$" />
15571566
<target name="^.*solaris.*$" />
15581567
<target name="^.*mingw.*$" />

0 commit comments

Comments
 (0)