[MDEV-29973] BUILD: libmariadb/plugins/auth/ have_C__Wl___as_needed is set incorrectly Created: 2022-11-08  Updated: 2023-01-17  Resolved: 2022-11-08

Status: Closed
Project: MariaDB Server
Component/s: Compiling, Configuration
Affects Version/s: 10.6.11
Fix Version/s: 10.6.12

Type: Bug Priority: Major
Reporter: David Bohman Assignee: Sergei Golubchik
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-29925 Building failure on MacOS since the l... Stalled

 Description   

The following line in CMakeLists.txt is erroneous:

CHECK_C_COMPILER_FLAG(-Wl,--as-needed have_C__Wl___as_needed)

The problem is that it uses CHECK_C_COMPILER_FLAG() to test for a linker flag, which can result in false positives. Need to use CHECK_LINKER_FLAG() instead:

CHECK_LINKER_FLAG(C --as-needed have_C__Wl___as_needed)

This is a regression from 10.6.10.



 Comments   
Comment by Daniel Lenski [ 2023-01-17 ]

This was fixed as part of MDEV-29925 in https://github.com/mariadb-corporation/mariadb-connector-c/commit/44383e3df4896f2d04d9141f640934d3e74e04d7

Generated at Thu Feb 08 10:12:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.