Merge pull request #5929 from JonnyH/PR/fix-oprofile-build-linked-as-needed

Fix OPROFILE linux build with -Wl,--as-needed
This commit is contained in:
Leo Lam 2017-08-17 03:06:59 +08:00 committed by GitHub
commit 70931f460d
2 changed files with 4 additions and 4 deletions

View File

@ -119,6 +119,10 @@ endif()
add_dolphin_library(common "${SRCS}" "${LIBS}")
if(OPROFILE_FOUND)
target_link_libraries(common PRIVATE ${OPROFILE_LIBRARIES})
endif()
if(UNIX)
# Posix networking code needs to be fixed for Windows
add_executable(traversal_server TraversalServer.cpp)

View File

@ -346,10 +346,6 @@ if(TARGET Hidapi::Hidapi)
add_definitions(-DHAVE_HIDAPI=1)
endif()
if(OPROFILE_FOUND)
set(LIBS ${LIBS} ${OPROFILE_LIBRARIES})
endif()
if(GDBSTUB)
set(SRCS ${SRCS} PowerPC/GDBStub.cpp)
endif()