diff --git a/indra/cmake/APR.cmake b/indra/cmake/APR.cmake
index 82ffd6e458b8fdf4c6db1cc3d8d475df6fefe5d3..481e97f93e5a866bce6d20575eaf8cd4b309a9bb 100755
--- a/indra/cmake/APR.cmake
+++ b/indra/cmake/APR.cmake
@@ -29,6 +29,9 @@ else (USESYSTEMLIBS)
       debug ${ARCH_PREBUILT_DIRS_DEBUG}/${APR_selector}aprutil-1.lib ${APRICONV_LIBRARIES}
       optimized ${ARCH_PREBUILT_DIRS_RELEASE}/${APR_selector}aprutil-1.lib ${APRICONV_LIBRARIES}
       )
+    if(NOT LLCOMMON_LINK_SHARED)
+      list(APPEND APR_LIBRARIES Rpcrt4)
+    endif(NOT LLCOMMON_LINK_SHARED)
   elseif (DARWIN)
     if (LLCOMMON_LINK_SHARED)
       set(APR_selector     "0.dylib")