diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake
index e5900720b2bf321699b3b50195e8e5d274419ce2..d12f8d9e59aa52c79bfd1ca623f72ece7bd06fec 100644
--- a/indra/cmake/00-Common.cmake
+++ b/indra/cmake/00-Common.cmake
@@ -155,7 +155,7 @@ endif (LINUX)
 
 if (DARWIN)
   add_definitions(-DLL_DARWIN=1)
-  set(CMAKE_LD_FLAGS "-headerpad_max_install_names -search_paths_first")
+  set(CMAKE_CXX_LINK_FLAGS "-Wl,-headerpad_max_install_names,-search_paths_first")
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mlong-branch")
   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mlong-branch")
 endif (DARWIN)