From 509fb56cb3f9ccd3fb37c68c893af6129b2c6222 Mon Sep 17 00:00:00 2001 From: Philipp Knechtges Date: Thu, 8 Dec 2011 10:03:28 +0100 Subject: [PATCH] drop the --as-needed linker flag First point is that it produces linker errors because the libs are not linked in the proper order. Secondly it is not worth fixing this because all functions are referenced in some way in a reference table. --- CMake/HPHPFindLibs.cmake | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMake/HPHPFindLibs.cmake b/CMake/HPHPFindLibs.cmake index 3da550f2169c7..b147b502b2b41 100644 --- a/CMake/HPHPFindLibs.cmake +++ b/CMake/HPHPFindLibs.cmake @@ -402,6 +402,4 @@ endif() target_link_libraries(${target} ${PAM_LIBRARY}) endif() - set_target_properties(${target} PROPERTIES LINK_FLAGS "-Wl,--as-needed") - endmacro()