From 5504570c3d373f4ca2fa93770a2500d11611652c Mon Sep 17 00:00:00 2001 From: Randy Li Date: Tue, 25 Jul 2017 17:10:29 +0800 Subject: [PATCH] Revert "[osal]: linux: add -ldl -lct to link relative library" This reverts commit 8d425117736c06802ae065011abcd25e05370c52. It will cause a problem in the platform skipping those library. since those libraries are not necessary for any platform, I think don't link with them would be better. Change-Id: I33f48750f70838e393c02eb55971d5ebe0d3df31 Signed-off-by: Randy Li --- osal/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/osal/CMakeLists.txt b/osal/CMakeLists.txt index 83e4004b..aadb1151 100644 --- a/osal/CMakeLists.txt +++ b/osal/CMakeLists.txt @@ -61,9 +61,7 @@ if(ANDROID) add_definitions(-static) # in Android pthread is in libc, also need liblog target_link_libraries(osal log stdc++ m) -elseif(UNIX) - target_link_libraries(osal -ldl -lrt) -endif() +endif(ANDROID) # unit test add_subdirectory(test)