Bug #95369 cleanup ORIGIN and INSTALL_RPATH and CMAKE_xx_LINK_FLAGS
Submitted: 14 May 2019 11:20 Modified: 21 May 2019 17:42
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.18 OS:Any
Assigned to: CPU Architecture:Any

[14 May 2019 11:20] Tor Didriksen
Description:
Pushbuild uses INSTALL_DEBUG_TARGETS which does INSTALL(FILES ....) of *debug* binaries as part if install of *release* builds. For this to work at load/run-time, we need to build debug binaries with -Wl,-rpath,'\$ORIGIN/' on linux "standalone" installations.

How to repeat:
Read the code. Use 'chrpath' and 'ldd' on binaries, to see rpath dependencies.

Suggested fix:
Cleanup how/where we set RPATH.
This is a prerequisite for WL#13126 Dynamic linking of Protobuf
[21 May 2019 17:42] Paul DuBois
Posted by developer:
 
Fixed in 8.0.18.

Configuration cleanup. No changelog entry required.