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:
commit
70931f460d
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue