genodelabs / goa

Tool for streamlining the development of Genode applications
GNU Affero General Public License v3.0
19 stars 18 forks source link

Qt5: Adjust to 23.05 tool chain + add shared library support #66

Closed ssumpf closed 7 months ago

ssumpf commented 8 months ago

@jschlatow: Please consider b6da5df for staging.

jschlatow commented 8 months ago

merged to staging

ssumpf commented 8 months ago

@jschlatow: We experienced the "--whole-archive" problem with libgcc.a again with shared libraries and Qt5, same as with cmake. So 8f3af6e is a necessary follow up.

chelmuth commented 8 months ago

@ssumpf shared libraries in the genode mk link with libgcc outside of --whole-archive --start-group ... --end-group --no-whole-archive in repos/base/mk/lib.mk. Can you tell why it is not needed there but here? Note, I also checked a build of app/texedit, which builds libQt5Gui.lib.so etc.

ssumpf commented 8 months ago

@ssumpf shared libraries in the genode mk link with libgcc outside of --whole-archive --start-group ... --end-group --no-whole-archive in repos/base/mk/lib.mk. Can you tell why it is not needed there but here? Note, I also checked a build of app/texedit, which builds libQt5Gui.lib.so etc.

@chelmuth: Because there is only one archive (libgcc.a) there.

From the ld man page of --start-group

The specified archives are searched repeatedly until no new undefined references  are  created.
Normally,  an  archive  is  searched only once in the order that it is specified on the command
line.