This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 00fb00849d4e68136e4efc3b355f1cdc60484aaf
Author: Chris McFarlen <[email protected]>
AuthorDate: Mon Mar 4 17:31:32 2024 -0600

    Only work around dup lib issue on appleclang (#11105)
    
    Co-authored-by: Chris McFarlen <[email protected]>
    (cherry picked from commit 12cbce5577268bdc53226fb59c1ba158ff71fd4b)
---
 CMakeLists.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3b50eb08e7..8ec664d50e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -521,9 +521,10 @@ if(HOST_OS STREQUAL "linux")
   link_libraries(dl)
 endif(HOST_OS STREQUAL "linux")
 
-if(HOST_OS STREQUAL "darwin")
+if(CMAKE_CXX_COMPILER_ID STREQUAL AppleClang)
   set(CMAKE_MACOSX_RPATH 1)
-endif(HOST_OS STREQUAL "darwin")
+  link_libraries("-ld_classic")
+endif()
 
 if(HOST_OS STREQUAL "freebsd")
   set(CMAKE_THREAD_LIBS_INIT "-lpthread")

Reply via email to