Bug #51469 Patch to fix linking with -Wl,--as-needed
Submitted: 24 Feb 2010 17:30 Modified: 25 Mar 2010 17:10
Reporter: Christian Ruppert Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.16 OS:Linux
Assigned to: Alfredo Kojima CPU Architecture:Any

[24 Feb 2010 17:30] Christian Ruppert
Description:
Take a look at my patch which fixes linking with '-Wl,--as-needed'.
Although the build-system could still need some love (e.g. run autogen.sh or autoreconf -fi and you'll see what i mean) :P

For further informations see: https://bugs.gentoo.org/show_bug.cgi?id=306387

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

[1] http://www.gentoo.org/proj/en/qa/asneeded.xml

Suggested fix:
Apply my patch.
[24 Feb 2010 17:30] Christian Ruppert
mysql-workbench-oss-5.2.16-asneeded.patch

Attachment: mysql-workbench-oss-5.2.16-asneeded.patch (application/octet-stream, text), 1.65 KiB.

[16 Mar 2010 1:40] Alfredo Kojima
Thank you for the patch, it has been applied.
[24 Mar 2010 10:03] Johannes Taxacher
patch-application confirmed in reposiory
[25 Mar 2010 17:10] Tony Bedford
An entry has been added to the 5.2.17 changelog:

Building MySQL Workbench from source failed if LDFLAGS="-Wl,--as-needed" option was specified.