From 0105ece171d97ecdbc283f18e84966f61d8faf69 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Tue, 2 Dec 2014 15:21:59 -0500 Subject: [PATCH] Fix standalone Windows build. Don't link with dl, except on Linux where we have malloc tests. Change-Id: I7b23acc854172e64628a55acecfaa9a661f74f77 Reviewed-on: https://boringssl-review.googlesource.com/2453 Reviewed-by: Adam Langley --- ssl/test/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ssl/test/CMakeLists.txt b/ssl/test/CMakeLists.txt index f7f0efc7e..ea7b9ed02 100644 --- a/ssl/test/CMakeLists.txt +++ b/ssl/test/CMakeLists.txt @@ -10,4 +10,7 @@ add_executable( test_config.cc ) -target_link_libraries(bssl_shim ssl crypto dl) +target_link_libraries(bssl_shim ssl crypto) +if (NOT APPLE AND NOT WIN32) + target_link_libraries(bssl_shim dl) +endif()