forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[yugabyte#19378] Fix duplicate RPATH arguments in linker command lines
Summary: Fixing duplicate `-Wl,-rpath,...` arguments provided to the linker. It became a warning with the new linker on macOS 13.6 (`ld: warning: duplicate -rpath` messages). Adding deduplication in compiler-wrapper.sh that should make sure that the eventual command line does not have any duplicate RPATHs, even if the build scripts are modified so that the duplicates reappear. Also, by setting the YB_FAIL_ON_DUPLICATE_RPATH environment variable, we can cause a compilation failure if duplicate RPATH options are ever given to the linker. Also various other cleanup in the build system: - Remove static analyzer support from compiler wrapper. - Better naming for third-party directory variables in CMakeLists.txt. - Actually use the ENFORCE_OUT_OF_SOURCE_BUILD function in CMakeLists.txt. This function was defined but not used. - Removing compiler wrapper code for making RPATHs relative, because it was incomplete anyway (did not work for Postgres), and we don't really ever move code to a different directory just to run tests. For release packaging, we use a different approach for making RPATHs relative. - Remove CMake*.log files before running CMake so that if we have to show their contents, we don't show stale information. Also updating third-party dependencies: https://github.com/yugabyte/yugabyte-db-thirdparty/compare/057e0a1188230bc58a4d71394a92bec157dce13f..09031a51d0fd907fa79420954f46da9e1ede2829 Test Plan: Jenkins Manual test on Linux and macOS: YB_FAIL_ON_DUPLICATE_RPATH=1 ./yb_build.sh Reviewers: asrivastava, hsunder Reviewed By: hsunder Subscribers: ybase, yql Differential Revision: https://phorge.dev.yugabyte.com/D28966
- Loading branch information
Showing
12 changed files
with
227 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.