Bug #52570 Patch to fix linking with -Wl,--as-needed
Submitted: 3 Apr 2010 8:33 Modified: 19 Apr 2010 12:25
Reporter: Hans de Graaff Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.17 OS:Any
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: --as-needed, linking

[3 Apr 2010 8:33] Hans de Graaff
Description:
mysql-workbench 5.2.17 fixed a number of problems when linking with the --as-needed option. Unfortunately, it seems that another case was introduced. The attached patch solves this.

See http://bugs.mysql.com/bug.php?id=51469 for additional background information.

How to repeat:
Build mysql-workbench with LDFLAGS="-Wl,--as-needed" or even with forced as-needed

Suggested fix:
Apply attached patch.
[3 Apr 2010 8:34] Hans de Graaff
mysql-workbench-5.2.17-as-needed.patch

Attachment: mysql-workbench-5.2.17-as-needed.patch (application/octet-stream, text), 298 bytes.

[15 Apr 2010 1:20] Alfredo Kojima
I've updated the sources with your requested change, thank you for the bug report and patch.
[16 Apr 2010 17:03] Johannes Taxacher
patch added to repository sources
[19 Apr 2010 12:25] Tony Bedford
An entry has been added to the 5.2.19 changelog:

Attempting to build MySQL Workbench using the LDFLAGS="-Wl,--as-needed" linker options failed.