Linux build fix.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6999 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2011-01-31 02:13:10 +00:00
parent cb48f5969a
commit f1e8da63ec
8 changed files with 5 additions and 22 deletions

View File

@ -41,7 +41,4 @@ endif(WIN32)
enable_precompiled_headers(Src/stdafx.h Src/stdafx.cpp SRCS)
add_library(common STATIC ${SRCS})
target_link_libraries(common ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_definitions(-fPIC)
endif()
target_link_libraries(common clrun ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT})

View File

@ -182,7 +182,7 @@ set(SRCS Src/ActionReplay.cpp
Src/PowerPC/JitCommon/JitCache.cpp
Src/PowerPC/JitCommon/Jit_Util.cpp)
set(LIBS bdisasm inputcommon core lua sfml-network)
set(LIBS bdisasm inputcommon videoogl lua sfml-network)
if(WIN32)
set(SRCS ${SRCS} Src/HW/BBA-TAP/TAP_Win32.cpp Src/stdafx.cpp
@ -209,6 +209,3 @@ endif(OPROFILE_FOUND)
add_library(core STATIC ${SRCS})
target_link_libraries(core ${LIBS})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_definitions(-fPIC)
endif()

View File

@ -52,5 +52,4 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(videocommon ${LIBAV_LIBRARIES})
add_definitions(-D__STDC_CONSTANT_MACROS)
endif()
add_definitions(-fPIC)
endif()

View File

@ -2,6 +2,3 @@ set(SRCS Src/VideoConfigDiag.cpp
Src/DebuggerPanel.cpp)
add_library(videouicommon STATIC ${SRCS})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_definitions(-fPIC)
endif()